Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rust API Setup

To use Shrew in your Rust project, add the dependencies to your Cargo.toml.

Dependencies

[dependencies]
shrew = "0.1"
anyhow = "1.0" # Recommended for error handling

Feature Flags

  • cuda: Enable CUDA backend support.
  • python: Enable Python bindings.
[dependencies]
shrew = { version = "0.1", features = ["cuda"] }