Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
194 changes: 136 additions & 58 deletions Cargo.lock

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ async-trait = "0.1.88"
base64 = "0.22.1"
bytes = "1.10.1"
cookie = { version = "0.18.1", features = ["private", "signed"] }
envy = "0.4"
futures-util = "0.3.31"
http = "1.3.1"
http-body = "1.0.1"
Expand All @@ -94,9 +95,9 @@ serde_json = "1.0.140"
serde_urlencoded = "0.7"
sha1 = "0.10.6"
smallvec = "1"
tokio = { version = "1.48.0", features = ["full"] }
tokio = { version = "1.52.1", features = ["full"] }
tokio-stream = "0.1.17"
tokio-tungstenite = "0.27.0"
tokio-tungstenite = "0.29.0"
tokio-util = { version = "0.7.15", features = ["compat"] }
tracing = "0.1.41"
url = "2.5.4"
Expand All @@ -105,11 +106,8 @@ urlencoding = "2.1.3"
# Optional / feature-gated
ahash = { version = "0.8.12", features = ["serde"] }
brotli = "8.0.1"
compio = { version = "0.17.0", features = ["macros", "rustls"] }
compio-buf = "0.7.1"
compio-io = "0.8.4"
compio-ws = "0.2.0"
cyper-core = "0.7.0"
compio = { version = "0.18.0", features = ["macros", "rustls", "time", "fs", "net"] }
cyper-core = "0.8.0"
flate2 = "1.1.2"
h3 = "0.0.8"
h3-quinn = "0.0.10"
Expand All @@ -125,6 +123,7 @@ rustls-pemfile = "2.2.0"
send_wrapper = "0.6"
simd-json = "0.15.1"
sonic-rs = "0.5.6"
subtle = "2.6.1"
tikv-jemallocator = "0.6.0"
tokio-rustls = "0.26.2"
uuid = { version = "1.17.0", features = ["v4"] }
Expand Down
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@
[![Crates.io](https://img.shields.io/crates/v/tako-rs?style=flat-square)](https://crates.io/crates/tako-rs)
![License](https://img.shields.io/crates/l/tako-rs?style=flat-square)

> **⚠️ Tako 2.0 is in progress on `main`.** The default branch carries breaking
> changes (new `Server::builder`, `Router::with_state`, `nest`/`scope`, `405 +
> Allow`, RFC 7807 `problem+json`, runtime-agnostic `ServerHandle`, …) that are
> **not yet released**. For production, install the published 1.x line from
> crates.io:
>
> ```toml
> [dependencies]
> tako-rs = "1"
> ```
>
> Track 2.0 work in [`V2_ROADMAP.md`](./V2_ROADMAP.md). Expect API churn until
> the 2.0 alpha is tagged.

# 🐙 Tako — Multi-Transport Rust Framework for Modern Network Services

> **Tako** (*"octopus"* in Japanese) is a pragmatic, ergonomic and extensible Rust framework for services that go beyond plain HTTP.
> Build one cohesive application across HTTP/1.1, HTTP/2, HTTP/3, WebSocket, SSE, gRPC, TCP, UDP, Unix sockets, and WebTransport with a single routing, middleware, and observability model.

> **Blog posts:**
> - [Tako: A Lightweight Async Web Framework on Tokio and Hyper](https://rust-dd.com/post/tako-a-lightweight-async-web-framework-on-tokio-and-hyper)
> - [Tako v.0.5.0 road to v.1.0.0](https://rust-dd.com/post/tako-v-0-5-0-road-to-v-1-0-0)
> - [Tako v0.5.0 → v0.7.1-2: from "nice router" to "mini platform"](https://rust-dd.com/post/tako-v0-5-0-to-v0-7-1-2-from-nice-router-to-mini-platform)

## Why Tako

Tako is built for teams that want fewer moving parts in production:
Expand Down
460 changes: 460 additions & 0 deletions V2_ROADMAP.md

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions examples/bench-pt/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions examples/bench-pt/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ fn main() {
workers,
pin_to_core: false,
backlog: 1024,
..Default::default()
};
tako::serve_per_thread(&addr, build_router(), cfg).expect("serve_per_thread");
}
Expand All @@ -75,6 +76,7 @@ fn main() {
workers,
pin_to_core: false,
backlog: 1024,
..Default::default()
};
tako::serve_per_thread_compio(&addr, build_router(), cfg)
.expect("serve_per_thread_compio");
Expand Down
Loading
Loading