Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

nio

> 编程语言
Open source

Thread-Per-Core async runtime for Rust

386 stars0 likes1 views
WebsiteGitHub

About

Thread-Per-Core async runtime for Rust

Nio

Nio is a Thread-Per-Core async runtime for Rust.

Task spawning APIs

Nio uses multiple worker threads to execute tasks.

Function Send requirement Thread affinity
nio::spawn_local !Send allowed Pinned to current thread
nio::spawn_pinned Only captured variables Pinned to one worker thread (selected by the runtime based on load)
nio::spawn_pinned_at Only captured variables Pinned to a specific worker thread (by index)
nio::spawn Send required Not pinned, may move between threads at .await points

Note: nio::spawn_pinned, nio::spawn_pinned_at accept async closure, Only captured variables required to be Send, task itself is !Send.

Example

toml
[dependencies]
nio = { version = "0.1.3", features = ["tokio-io"] }

By default, Nio implements async traits from futures-io. But the optional "tokio-io" feature implements async traits from tokio::io.

Here is a basic echo server example:

…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustasyncnioruntime

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言