Expand description
Public facade crate for the Nidus framework.
Re-exports§
pub use app::NidusApplicationBuilder;pub use app::NidusApplicationExt;pub use nidus_config as config;pub use nidus_http as http;
Modules§
- app
- High-level application composition for the facade crate.
- container
- Typed dependency container primitives.
- error
- Framework error types.
- lifecycle
- Application lifecycle hooks.
- module
- Module graph primitives.
- prelude
- Common imports for Nidus applications.
- provider
- Provider registration primitives.
- runtime
- Tokio runtime types used by Nidus application entrypoint macros.
Structs§
- Application
- Bootstrapped Nidus application.
- Container
- Type-indexed dependency container.
- Controller
Descriptor - Type-erased controller runtime hooks.
- Factory
- Factory dependency wrapper.
- Inject
- A typed dependency reference resolved from the container.
- Lazy
- Lazily resolved dependency wrapper.
- Lifecycle
Runner - Ordered lifecycle hook runner.
- Module
Builder - Builder for explicit module definitions.
- Module
Definition - Explicit module metadata used to validate application structure.
- Module
Graph - Validated graph of module definitions.
- Nidus
- Framework bootstrap entrypoint.
- Optional
- Optional dependency wrapper.
- Provider
Entry - A typed provider registration stored by the container.
- Request
Scope - Per-request dependency scope.
- Scoped
- Request-scoped dependency wrapper.
Enums§
- Nidus
Error - Errors emitted by Nidus core primitives.
- Provider
Lifetime - Provider creation and reuse strategy.
Traits§
- Controller
Registrant - Type-erased controller descriptor used by feature crates to assemble HTTP routers.
- Lifecycle
Hook - Application lifecycle hook.
- Module
- A Rust type that describes a Nidus module.
- Provider
- Marker trait for injectable provider values.
- Provider
Registrant - Registers a provider type with a dependency container.
Type Aliases§
- Async
Provider Initializer - Initializes an async provider during application bootstrap.
- Module
Definition Factory - Creates an imported module definition.
- Provider
Registrar - Registers a provider against a container.
- Result
- Convenient result type for Nidus operations.
- Shared
Request Scope - Shared request scope handle suitable for HTTP request extensions.
Attribute Macros§
- controller
- Declares the path prefix for a controller type.
- delete
- Declares a DELETE handler inside a
#[routes]impl block. - get
- Declares a GET handler inside a
#[routes]impl block. - guard
- Declares guard metadata for a controller route method.
- injectable
- Declares a struct as an injectable provider.
- main
- Runs an async Nidus entrypoint on a Tokio runtime.
- module
- Declares a Nidus module from a Rust struct.
- openapi
- Declares OpenAPI metadata for a controller route method.
- patch
- Declares a PATCH handler inside a
#[routes]impl block. - pipe
- Declares pipe metadata for a controller route method.
- post
- Declares a POST handler inside a
#[routes]impl block. - put
- Declares a PUT handler inside a
#[routes]impl block. - routes
- Generates route metadata and executable Axum routers for a controller impl.
- validate
- Marks a controller route method as participating in validation metadata.