🐙 tako
Reference

API reference

The in-source rustdoc on docs.rs is the canonical per-item API reference for tako — here is the per-crate link list.

API reference

This site is the long-form guide. The canonical, per-item API reference is the in-source rustdoc published on docs.rs. Every public type, trait, function, and feature flag is documented there, generated directly from the source, so it never drifts from the code.

When this site and the rustdoc disagree about a single API, the rustdoc wins — it is generated from the exact released source. This site wins for intent, recommended patterns, and how the pieces fit together.

Where to read it

Application code depends only on the umbrella crate and reaches everything through the tako::* path, so the umbrella docs are the entry point:

  • tako-rs — the umbrella. Start here. Everything public is re-exported under tako::*, and this is the only crate covered by the stability policy.

Per-crate rustdoc

The sub-crates are implementation detail — you rarely name them directly — but their rustdoc is published for browsing the source-level layout:

Cratedocs.rsOwns
tako-rsdocs.rs/tako-rsUmbrella re-export (tako::*), cargo features, prelude
tako-rs-coredocs.rs/tako-rs-coreRouter, handlers, middleware/plugin traits, body/request/response, state, signals, queue
tako-rs-extractorsdocs.rs/tako-rs-extractorsConcrete request extractors
tako-rs-serverdocs.rs/tako-rs-serverHTTP/1.1, HTTP/2, HTTP/3, TLS, raw TCP/UDP/Unix, PROXY protocol, compio variants
tako-rs-streamsdocs.rs/tako-rs-streamsWebSocket, SSE, file streaming, static files, WebTransport
tako-rs-pluginsdocs.rs/tako-rs-pluginsBundled middleware and plugins
tako-rs-macrosdocs.rs/tako-rs-macrosThe #[tako::route] / #[tako::get] attribute family
tako-rs-server-ptdocs.rs/tako-rs-server-ptThread-per-core entry point

Import from the umbrella (tako::router::Router), not the sub-crate (tako_core::...). Only the umbrella re-export path is covered by the stability contract; a direct sub-crate path may move in a minor release.

Building the docs locally

To read the rustdoc for the exact version you depend on, build it from your own checkout:

cargo doc -p tako-rs --no-deps --open

Add the features you use so the gated items appear — for example --features "http2 tls plugins". See the feature reference for the full flag list.

On this page