Crate map
Every crate in the workspace, grouped by role, with its features, MSRV, runtime level and the Ulo crates it depends on.
The workspace has 72 member crates besides the examples. 58 are published and 14 are test-only (publish = false). Of the published crates, 17 release together as the core under one tag and 41 are leaves. Every member inherits its version from [workspace.package], currently 0.1.0-alpha.3, and every internal normal dependency names it exactly, so a published crate resolves no sibling from another release.
The minimum supported Rust version is 1.88, set once in [workspace.package]. Five crates carry a higher floor because a dependency does: ulo-http-salvo 1.92, ulo-graphql-async-graphql 1.89, ulo-db-diesel 1.89, and ulo-db-sqlx and ulo-db-seaorm 1.94. Every other crate keeps 1.88.
The columns:
- Features lists the crate's own cargo features.
defaultis shown after the semicolon. The feature flags are explained on Features and environment. - Runtime level is the level
runtime-levels.txtassigns and CI checks againstcargo tree.runtime-freemeans notokiocrate anywhere in the dependency tree, so a plug point is implemented without one.runtime-neutralmeans tokio'ssyncarrives through hyper and nothing else of tokio does, so the crate runs on whatever runtime the app is given.runtime-neutral+http2addsio-utilandbytes, whichh2brings.tokio-boundruns on tokio. Two levels listed for one crate are two feature sets checked. - Depends on lists only the
ulo-*crates among the normal dependencies, including optional ones.
What an application depends on
An application depends on the core, one or more transport crates, one server per transport, and a runtime crate. examples/01-hello is the smallest:
[dependencies]
ulo = { path = "../../crates/ulo" }
ulo-http = { path = "../../crates/ulo-http" }
ulo-http-hyper = { path = "../../crates/ulo-http-hyper" }
ulo-runtime-tokio = { path = "../../crates/ulo-runtime-tokio" }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }The macros arrive through the crates that re-export them: ulo re-exports the core attributes, ulo-http the HTTP verbs, ulo-rpc message and event, ulo-ws gateway and message, and ulo-grpc method. A crate that derives Classify or Validate needs no dependency beyond the transport it already uses. An application never depends on a -macros crate directly.
Which server a transport runs on is chosen in main, by the value handed to App::bind: ulo_http_hyper::Server for HTTP, ulo_ws_hyper::Server for a WebSocket gateway on its own port, and a link's server for RPC. An HTTP application embedded in a host that owns the sockets uses an embedding crate (ulo-http-axum, -salvo, -poem, -actix, -rocket) instead.
Layers
| Layer | Crates | Depends on |
|---|---|---|
| core | ulo, ulo-macros, ulo-handler-codegen | nothing below it |
| runtime | ulo-runtime-tokio, ulo-runtime-smol | the core |
| transport hubs | ulo-transport, ulo-net, ulo-http, ulo-ws, ulo-rpc, ulo-grpc and their macro crates | the core, and ulo-transport |
| servers and links | ulo-server-hyper, the listeners, ulo-http-hyper, ulo-ws-hyper, the embedding hosts, the RPC links | a hub, and for the hyper servers a listener |
| integrations | config, health, db, graphql, otel, ulo-ws-redis | the core, and a hub where they mount routes |
| tooling | ulo-cli | nothing in the workspace |
ulo-transport contains what no single transport owns: FromCall, IntoReply, Classify, CallError, ErrorKind, Details, ExtractError, Valid and Validate, Admission for load shedding, and TaskSet. Each transport crate re-exports the part of it that its handler signatures name, so a type a handler takes or returns is reachable from the crate the application already depends on. scripts/public_reach.py checks that rule in CI.
ulo-handler-codegen is a plain library of syn functions, not a proc-macro crate. Every transport's attribute macro calls it, and a user-written transport's macro crate can too.
ulo-rpc-tcp-core is for link authors, not applications: it is the runtime-free half of the TCP wire that ulo-rpc-tcp and ulo-rpc-tcp-smol share. An application names ulo_rpc_tcp::Tcp or ulo_rpc_tcp_smol::Tcp.
Published crates
Core
| Crate | Role | Features | MSRV | Runtime level | Depends on (Ulo crates) |
|---|---|---|---|---|---|
ulo | The core: keys, bindings, injection points, scopes, executions, modules, lifecycle, errors, the enhancer traits and TestApp. | serde | 1.88 | runtime-free | ulo-macros |
ulo-macros | #[injectable], #[controller], #[construct], #[module], #[handlers], #[guards], #[interceptors], #[error_handlers] and #[meta]. | none | 1.88 | runtime-free | ulo-handler-codegen |
ulo-handler-codegen | The handler protocol every Ulo transport attribute macro is written against | none | 1.88 | runtime-free | none |
Runtimes
| Crate | Role | Features | MSRV | Runtime level | Depends on (Ulo crates) |
|---|---|---|---|---|---|
ulo-runtime-tokio | The tokio runtime for Ulo: the core's Runtime and Timer, OS shutdown signals and spawn helpers | none | 1.88 | tokio-bound | ulo |
ulo-runtime-smol | The smol runtime for Ulo: the core's Runtime on an async-executor Executor and async-io's timers | none | 1.88 | runtime-free | ulo |
Transport hubs and their macros
| Crate | Role | Features | MSRV | Runtime level | Depends on (Ulo crates) |
|---|---|---|---|---|---|
ulo-transport | Transport-neutral extraction, replies, errors, validation and load shedding for Ulo transports | validator | 1.88 | runtime-free | ulo, ulo-transport-macros |
ulo-transport-macros | Derives for Ulo's transport-neutral error and validation traits | none | 1.88 | runtime-free | none |
ulo-net | Endpoints, socket activation, TLS loading and bound addresses for Ulo transports | none | 1.88 | runtime-free | ulo |
ulo-http | The HTTP transport for Ulo: routing, extractors, responses, SSE, pre-dispatch middleware, the backend SPI and the embedding surface | tokio-io | 1.88 | runtime-free | ulo, ulo-http-macros, ulo-net, ulo-transport |
ulo-http-macros | The HTTP handler attributes for Ulo | none | 1.88 | runtime-free | ulo-handler-codegen |
ulo-ws | The WebSocket transport for Ulo: gateways, sessions, rooms and broadcast, on the HTTP server's port or its own | conformance-probe | 1.88 | runtime-free | ulo, ulo-http, ulo-transport, ulo-ws-macros |
ulo-ws-macros | The WebSocket gateway and message attributes for Ulo, re-exported by ulo-ws | none | 1.88 | runtime-free | ulo-handler-codegen |
ulo-rpc | The RPC transport for Ulo: one frame grammar over TCP, UDP and message brokers, the four call shapes, and the client | conformance-probe | 1.88 | runtime-free | ulo, ulo-rpc-macros, ulo-transport |
ulo-rpc-macros | The RPC message and event attributes for Ulo, re-exported by ulo-rpc | none | 1.88 | runtime-free | ulo-handler-codegen |
ulo-grpc | The gRPC transport for Ulo: handlers bound to generated method markers, an HTTP/2 server, status details, health, reflection and clients | none | 1.88 | tokio-bound | ulo, ulo-grpc-macros, ulo-http, ulo-listener-tokio, ulo-net, ulo-server-hyper, ulo-transport |
ulo-grpc-macros | The gRPC method attribute for Ulo, re-exported by ulo-grpc | none | 1.88 | runtime-free | ulo-handler-codegen |
ulo-build | Build-script code generation for ulo-grpc: messages, clients and the method markers handlers bind to, over a vendored protoc | vendored-protoc; default = [vendored-protoc] | 1.88 | runtime-free | none |
Servers, listeners and embedding hosts
| Crate | Role | Features | MSRV | Runtime level | Depends on (Ulo crates) |
|---|---|---|---|---|---|
ulo-server-hyper | The accept loop Ulo's hyper servers share: one task per connection, the handshake timeout and the drain, over a listener a runtime crate supplies | none | 1.88 | runtime-neutral | ulo, ulo-http, ulo-net, ulo-transport |
ulo-listener-tokio | The tokio listener for Ulo's hyper servers: tokio sockets, tokio-rustls, and hyper's I/O traits over them | none | 1.88 | tokio-bound | ulo-http, ulo-net, ulo-server-hyper |
ulo-listener-smol | The smol listener for Ulo's hyper servers: async-net sockets, futures-rustls, and hyper's I/O traits over them | none | 1.88 | runtime-neutral | ulo-http, ulo-net, ulo-server-hyper |
ulo-http-hyper | The hyper backend for Ulo's HTTP transport, the reference server | tokio; default = [tokio] | 1.88 | runtime-neutral+http2, tokio-bound | ulo, ulo-http, ulo-listener-tokio, ulo-net, ulo-server-hyper, ulo-transport |
ulo-ws-hyper | The standalone WebSocket server for Ulo: gateways declared port = own, on hyper and the listener of the app's runtime | tokio, conformance-probe; default = [tokio] | 1.88 | runtime-neutral, tokio-bound | ulo, ulo-http, ulo-listener-tokio, ulo-net, ulo-server-hyper, ulo-transport, ulo-ws |
ulo-http-axum | Runs an Ulo application inside an axum server, nested under a path or as the fallback | none | 1.88 | tokio-bound | ulo, ulo-http |
ulo-http-salvo | Runs an Ulo application inside a salvo server, nested under a path or as the catch-all | none | 1.92 | tokio-bound | ulo, ulo-http |
ulo-http-poem | Runs an Ulo application inside a poem server, nested under a path or as the fallback | none | 1.88 | tokio-bound | ulo, ulo-http |
ulo-http-actix | Runs an Ulo application inside an actix-web server, as a scope or the default service | conformance-http2 | 1.88 | tokio-bound | ulo, ulo-http |
ulo-http-rocket | Runs an Ulo application inside a rocket server, mounted as catch-all routes | none | 1.88 | tokio-bound | ulo, ulo-http |
RPC links
| Crate | Role | Features | MSRV | Runtime level | Depends on (Ulo crates) |
|---|---|---|---|---|---|
ulo-rpc-tcp | The TCP link for Ulo RPC: length-prefixed frames multiplexed by id over one connection | none | 1.88 | tokio-bound | ulo, ulo-net, ulo-rpc, ulo-rpc-tcp-core, ulo-runtime-tokio |
ulo-rpc-tcp-smol | The TCP link for Ulo RPC on smol's sockets: ulo-rpc-tcp's wire over async-net, with futures-rustls for TLS | none | 1.88 | runtime-free | ulo, ulo-net, ulo-rpc, ulo-rpc-tcp-core |
ulo-rpc-tcp-core | For link authors, not applications: the runtime-free half of Ulo's TCP RPC links, shared by ulo-rpc-tcp and ulo-rpc-tcp-smol | none | 1.88 | runtime-free | ulo, ulo-net, ulo-rpc, ulo-transport |
ulo-rpc-udp | The UDP link for Ulo RPC: one frame per datagram, unary calls and events | none | 1.88 | tokio-bound | ulo, ulo-net, ulo-rpc, ulo-runtime-tokio, ulo-transport |
ulo-rpc-nats | The NATS link for Ulo RPC: queue-group subscriptions, inbox replies, no-responders | integration, conformance-probe | 1.88 | tokio-bound | ulo, ulo-rpc, ulo-runtime-tokio, ulo-transport |
ulo-rpc-redis | The Redis link for Ulo RPC: Pub/Sub per pattern carrying the whole frame | tls, integration, conformance-probe | 1.88 | tokio-bound | ulo, ulo-rpc, ulo-runtime-tokio, ulo-transport |
ulo-rpc-rabbitmq | The RabbitMQ (AMQP 0-9-1) link for Ulo RPC: queues, reply_to and correlation_id, confirms | integration, conformance-probe | 1.88 | tokio-bound | ulo, ulo-rpc, ulo-runtime-tokio, ulo-transport |
ulo-rpc-mqtt | The MQTT v5 link for Ulo RPC: shared subscriptions, Response Topic and Correlation Data | integration, conformance-probe | 1.88 | tokio-bound | ulo, ulo-rpc, ulo-runtime-tokio, ulo-transport |
ulo-rpc-kafka | The Kafka link for Ulo RPC: consumer groups, a reply topic and correlation headers | tls, integration, conformance-probe | 1.88 | tokio-bound | ulo, ulo-rpc, ulo-runtime-tokio, ulo-transport |
Integrations
| Crate | Role | Features | MSRV | Runtime level | Depends on (Ulo crates) |
|---|---|---|---|---|---|
ulo-config | Layered configuration for Ulo: TOML, JSON, YAML, .env and the environment read into one tree whose every value knows its origin, and typed sections that report every problem at once | yaml | 1.88 | runtime-free | ulo |
ulo-health | Health for Ulo: checks with bounds, liveness, readiness and startup probes, and the module that turns readiness false before the first refusal at shutdown | none | 1.88 | runtime-free | ulo |
ulo-health-http | The Kubernetes probe routes for Ulo health: liveness, readiness and startup over HTTP, answered 200 or 503 with an application/health+json body | none | 1.88 | runtime-free | ulo, ulo-health, ulo-http |
ulo-health-grpc | The grpc.health.v1 bridge for Ulo health: the overall status written from readiness at lifecycle transitions and on an interval, through tonic-health | none | 1.88 | tokio-bound | ulo, ulo-grpc, ulo-health |
ulo-db | The shared database policy for Ulo: connect, retry, close, health and the migration lock written once over the core's readiness API, and the Store trait each driver crate implements | none | 1.88 | runtime-free | ulo, ulo-config, ulo-health |
ulo-db-sqlx | SQLx stores for Ulo: Postgres, MySQL and SQLite pools with the shared connect, health and migration-lock policy | tls, postgres, mysql, sqlite, integration; default = [tls] | 1.94 | tokio-bound | ulo, ulo-config, ulo-db |
ulo-db-seaorm | SeaORM store for Ulo: a DatabaseConnection with the shared connect, health and migration-lock policy, its URL validated by SQLx's option parser | tls, postgres, mysql, sqlite, integration; default = [tls] | 1.94 | tokio-bound | ulo, ulo-config, ulo-db, ulo-db-sqlx |
ulo-db-diesel | Diesel store for Ulo: a deadpool pool of diesel-async connections with the shared connect, health and migration-lock policy | postgres, mysql, sqlite, integration; default = [] | 1.89 | tokio-bound | ulo, ulo-config, ulo-db |
ulo-db-mongodb | MongoDB store for Ulo: a Client with the shared connect and health policy, its mongodb+srv lookup retried under the connect bound | integration | 1.88 | tokio-bound | ulo, ulo-config, ulo-db |
ulo-db-redis | Redis store for Ulo: a ConnectionManager with the shared connect and health policy, tokio-comp alone | integration, tls, smol-comp | 1.88 | tokio-bound | ulo, ulo-config, ulo-db |
ulo-graphql | Transport-neutral GraphQL for Ulo: the Engine SPI, requests and responses | none | 1.88 | runtime-free | ulo |
ulo-graphql-http | GraphQL over HTTP for Ulo: the endpoint controller, its status rules and the playground | none | 1.88 | runtime-free | ulo, ulo-graphql, ulo-graphql-ws, ulo-http, ulo-transport |
ulo-graphql-ws | GraphQL subscriptions for Ulo over graphql-transport-ws, a WebSocket gateway over any engine | none | 1.88 | runtime-free | ulo, ulo-graphql, ulo-transport, ulo-ws |
ulo-graphql-async-graphql | The async-graphql engine for Ulo's GraphQL bindings | none | 1.89 | runtime-free | ulo, ulo-graphql |
ulo-graphql-juniper | The juniper engine for Ulo's GraphQL bindings | none | 1.88 | runtime-free | ulo, ulo-graphql |
ulo-otel | OpenTelemetry export for Ulo: a tracing layer over the transports' spans, the TraceSource that parents them on the incoming trace, sampling and the flush at shutdown | none | 1.88 | runtime-free | ulo, ulo-config |
ulo-otel-otlp | OTLP export over HTTP with protobuf for ulo-otel, on an HTTP client over ureq by default and reqwest's blocking client behind a feature | ureq, reqwest-blocking; default = [ureq] | 1.88 | runtime-free, tokio-bound | ulo, ulo-otel |
ulo-ws-redis | The Redis broadcast adapter for Ulo's WebSocket transport, carrying broadcasts across processes | integration | 1.88 | tokio-bound | ulo, ulo-runtime-tokio, ulo-ws |
Conformance suites
| Crate | Role | Features | MSRV | Runtime level | Depends on (Ulo crates) |
|---|---|---|---|---|---|
ulo-conformance-support | The harness pieces the Ulo conformance suites share | tokio, smol | 1.88 | runtime-free | ulo, ulo-runtime-smol, ulo-runtime-tokio |
ulo-rpc-conformance | The conformance suite every Ulo RPC link runs | tokio, smol | 1.88 | runtime-free | ulo, ulo-conformance-support, ulo-rpc, ulo-transport |
ulo-runtime-conformance | The conformance suite every Ulo runtime runs | none | 1.88 | runtime-free | ulo, ulo-transport |
Tooling
| Crate | Role | Features | MSRV | Runtime level | Depends on (Ulo crates) |
|---|---|---|---|---|---|
ulo-cli | The ulo binary: new, generate and dev. | dev; default = [dev] | 1.88 | tokio-bound | none |
Not published (publish = false)
| Crate | Role | Features | Depends on (Ulo crates) |
|---|---|---|---|
ulo-bench-overhead | Framework overhead: one GET / route served by ulo and by bare hyper, driven over loopback by one load loop | none | ulo, ulo-http, ulo-http-hyper, ulo-runtime-tokio |
ulo-codegen-tests | The generated code of ulo-build and #[ulo_grpc::method], compiled and served, and the compile-fail checks the attributes emit; the UI snapshots live here | none | ulo-grpc |
ulo-db-conformance | The conformance suite every Ulo database store runs | tokio | ulo, ulo-config, ulo-conformance-support, ulo-db, ulo-health |
ulo-db-sqlx-smol-probe | SQLx built with runtime-smol beside runtime-tokio, to measure where a PoolConnection dropped off the runtime returns | none | none |
ulo-grpc-interop | The gRPC project's interop TestService on ulo-grpc, for the CI job that runs the standard interop client against it | none | ulo, ulo-build, ulo-grpc, ulo-runtime-tokio, ulo-test-certs |
ulo-http-conformance | The embedding conformance suite every Ulo HTTP host runs, the hyper backend as the reference | tokio, smol, rocket | ulo, ulo-http, ulo-http-hyper, ulo-listener-smol, ulo-listener-tokio, ulo-runtime-smol, ulo-runtime-tokio, ulo-server-hyper, ulo-transport |
ulo-macro-lints | Every attribute and derive macro the framework exports, expanded in one crate for CI to lint as a user's crate | none | ulo, ulo-grpc, ulo-http, ulo-rpc, ulo-transport, ulo-ws |
ulo-reexport-facade | Writes the attributes #[handlers], #[controller] and #[injectable] remove through a crate re-exporting ulo, with no ulo in the manifest | none | ulo-http, ulo-reexport-renamed |
ulo-reexport-grpc | Derives Classify and Validate through ulo-grpc alone, to pin the re-exports the derives' output names | none | ulo-grpc |
ulo-reexport-renamed | Writes the same attributes with ulo renamed in the manifest, and re-exports the renamed crate for ulo-reexport-facade | none | ulo, ulo-http |
ulo-reexport-rpc | Derives Classify and Validate through ulo-rpc alone, to pin the re-exports the derives' output names | none | ulo-rpc |
ulo-reexport-ws | Derives Classify and Validate through ulo-ws alone, to pin the re-exports the derives' output names | none | ulo-ws |
ulo-test-certs | Test certificates generated at run time for the Ulo crates' TLS tests | none | none |
ulo-ws-conformance | The conformance suite every Ulo WebSocket server runs, ulo-ws-hyper's standalone server as the reference | none | ulo, ulo-transport, ulo-ws |
Notes on the tables
- A feature named
integrationgates the tests that need a running broker or database. Without it a plaincargo teston the crate compiles the integration test target to nothing and reports0 passed. - A feature named
conformance-probeexposes counters the conformance suites read. Its items are#[doc(hidden)]and outside the crate's semver promise. It is not for applications. ulo-rpcandulo-wsalso carryconformance-probe, which the links and servers forward.- The RPC links are tokio-based on a runtime of their own, captured where the link is built or named with
with_handle(h).ulo-rpc-tcp-smolis the TCP link on smol's sockets. ulo-db-sqlx-smol-probebuilds SQLx withruntime-smolbesideruntime-tokioto measure where a pool connection dropped off the runtime returns. It is a measurement and is not released.