This crate provides integration between the shaku
and rocket
crates.
See Inject
and InjectProvided
for details.
Inject | Used to retrieve a reference to a component from a shaku Module .
The module should be stored in Rocket's state, in a Box (It could be
Box<dyn MyModule> if the module implementation changes at runtime).
Use this Inject struct as a request guard.
|
InjectProvided | Used to create a provided service from a shaku Module .
The module should be stored in Rocket's state, in a Box (It could be
Box<dyn MyModule> if the module implementation changes at runtime).
Use this InjectProvided struct as a request guard.
|