4 releases (2 breaking)
Uses new Rust 2024
| 0.3.0 | Nov 24, 2025 |
|---|---|
| 0.2.1 | Nov 14, 2025 |
| 0.2.0 | Oct 21, 2025 |
| 0.0.1 | Oct 21, 2025 |
#17 in #oxidizer
46 downloads per month
Used in fundle
56KB
787 lines
Summary
Procedural macros to support the fundle crate. See fundle for more information.
Macros
#[bundle]
Transforms structs into type-safe builders with dependency injection support.
#[fundle::bundle]
pub struct AppState {
logger: Logger,
database: Database,
}
Generates builder methods and a select macro for dependency access.
#[deps]
Creates dependency parameter structs with automatic From<T> implementations.
#[fundle::deps]
pub struct ServiceDeps {
logger: Logger,
database: Database,
}
Generates From<T> where T: AsRef<Logger> + AsRef<Database>.
#[newtype]
Creates newtype wrappers with automatic trait implementations.
#[newtype]
pub struct DatabaseLogger(Logger);
Generates Clone, From<T: AsRef<Logger>>, Deref, and DerefMut.
This crate was developed as part of The Oxidizer Project.
Dependencies
~135–530KB
~13K SLoC