Skip to main content

Crate nidus

Crate nidus 

Source
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.
ControllerDescriptor
Type-erased controller runtime hooks.
Factory
Factory dependency wrapper.
Inject
A typed dependency reference resolved from the container.
Lazy
Lazily resolved dependency wrapper.
LifecycleRunner
Ordered lifecycle hook runner.
ModuleBuilder
Builder for explicit module definitions.
ModuleDefinition
Explicit module metadata used to validate application structure.
ModuleGraph
Validated graph of module definitions.
Nidus
Framework bootstrap entrypoint.
Optional
Optional dependency wrapper.
ProviderEntry
A typed provider registration stored by the container.
RequestScope
Per-request dependency scope.
Scoped
Request-scoped dependency wrapper.

Enums§

NidusError
Errors emitted by Nidus core primitives.
ProviderLifetime
Provider creation and reuse strategy.

Traits§

ControllerRegistrant
Type-erased controller descriptor used by feature crates to assemble HTTP routers.
LifecycleHook
Application lifecycle hook.
Module
A Rust type that describes a Nidus module.
Provider
Marker trait for injectable provider values.
ProviderRegistrant
Registers a provider type with a dependency container.

Type Aliases§

AsyncProviderInitializer
Initializes an async provider during application bootstrap.
ModuleDefinitionFactory
Creates an imported module definition.
ProviderRegistrar
Registers a provider against a container.
Result
Convenient result type for Nidus operations.
SharedRequestScope
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.