Crate shaku_axum

source ·
Expand description

This crate provides integration between the shaku and axum crates.

See Inject and InjectProvided for details.

Structs

  • Used to retrieve a reference to a component from a shaku Module. The module should be stored in Axum state, wrapped in an Arc (Arc<MyModule>). This Arc<MyModule> must implement FromRef<S> where S is the Axum state type.
  • Used to create a provided service from a shaku Module. The module should be stored in Axum state, wrapped in an Arc (Arc<MyModule>). This Arc<MyModule> must implement FromRef<S> where S is the Axum state type.