aerosol/src/lib.rs

36 lines
770 B
Rust
Raw Normal View History

#![deny(missing_docs)]
2018-10-29 01:36:58 +00:00
//! # aerosol
//! Simple dependency injection for Rust
2020-06-02 12:17:59 +01:00
//!
//! Optional features: `async`
2020-06-02 12:17:59 +01:00
//!
//! ## `async`
2020-06-02 12:17:59 +01:00
//!
//! Allows resources to be constructed asynchrously, and provies a corresponding
//! `AsyncConstructibleResource` trait.
2020-06-02 12:17:59 +01:00
//!
//! ## `axum`
2020-06-02 12:17:59 +01:00
//!
//! Provies integrations with the `axum` web framework. See the `axum` module
//! for more information.
2018-09-18 11:39:15 +01:00
#[cfg(feature = "async")]
mod async_;
#[cfg(feature = "async")]
mod async_constructible;
#[cfg(feature = "axum")]
pub mod axum;
mod resource;
mod slot;
mod state;
mod sync;
mod sync_constructible;
2018-09-18 11:39:15 +01:00
pub use resource::Resource;
pub use state::Aerosol;
2018-09-18 11:39:15 +01:00
pub use sync_constructible::ConstructibleResource;
2018-09-18 11:39:15 +01:00
#[cfg(feature = "async")]
pub use async_constructible::AsyncConstructibleResource;