nestrs
NestJS-style modules, controllers, dependency injection, and HTTP routes on Axum and Tower.
Repository: github.com/Joshyahweh/nestrs · Docs: docs.rs/nestrs
Install
[]
= "0.3.5"
= { = "1", = ["macros", "rt-multi-thread"] }
Optional features (enable in Cargo.toml): ws, graphql, openapi, microservices, microservices-nats, microservices-redis, microservices-kafka, microservices-mqtt, microservices-rabbitmq, microservices-grpc, cache-redis, schedule, queues, cookies, session, csrf (requires cookies), otel, and others — see Cargo.toml.
Minimal app
use *;
use Arc;
;
;
async
Ecosystem crates
| Crate | Role |
|---|---|
nestrs-core |
DI container, module traits, route registry |
nestrs-macros |
#[module], #[controller], #[get], … |
nestrs-events |
In-process event bus |
nestrs-cqrs |
Command/query buses |
nestrs-ws |
WebSocket gateway helpers |
nestrs-graphql |
async-graphql router |
nestrs-openapi |
OpenAPI + Swagger UI |
nestrs-microservices |
Transports (NATS, Redis, Kafka, MQTT, RabbitMQ, …) |
nestrs-prisma |
Prisma-oriented DB module |
nestrs-scaffold |
CLI (cargo install nestrs-scaffold, binary nestrs) |
See the workspace README for badges, benchmarks, and contribution guides.
License
Licensed under MIT OR Apache-2.0, matching the workspace.