wacht crate to your project’s dependencies. The SDK relies on the tokio asynchronous runtime.
Adding the Dependency
You can add the SDK via the command line:Cargo.toml:
Cargo Features
Thewacht crate exposes optional features to keep your compile times fast and your binary size small.
axum(default): Enables compatibility with theaxumweb framework. This provides theAuthLayermiddleware and various request extractors to authorize incoming HTTP requests automatically.
Requirements
- Rust Toolchain:
stable(edition 2021 recommended) - Runtime:
tokio(requires thert-multi-threadandmacrosfeatures for standard usage)
