nestrs-core
Runtime traits and types for nestrs: dependency injection (ProviderRegistry, Injectable), module graph hooks, route metadata (RouteRegistry), guards, pipes, and auth strategy extension points.
You rarely depend on this crate alone in application code; the main framework re-exports what you need via nestrs::prelude::*. Use nestrs-core when building extensions or custom modules without pulling the full HTTP stack.
Docs: docs.rs/nestrs-core · Repo: github.com/Joshyahweh/nestrs
Install
[]
= "0.1.2"
= "0.7"
= "0.1"
Example: custom injectable
use async_trait;
use ;
use Arc;
;
Example: register in a ProviderRegistry
use ProviderRegistry;
let mut registry = new;
registry.;
let clock = registry.;
Module / ModuleGraph implementations in higher-level crates call register_providers and register_controllers using these primitives.
License
MIT OR Apache-2.0.