🐙 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.

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 intended for applications is re-exported under tako::*.

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_rs_core::...). Use the migration guide when upgrading to the 2.1 API.

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.

Last updated on

On this page