[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-2024":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},2024,"tokio","tokio-rs\u002Ftokio","tokio-rs","A runtime for writing reliable asynchronous applications with Rust. Provides I\u002FO, networking, scheduling, timers, ...","https:\u002F\u002Ftokio.rs",null,"Rust",32264,3103,316,323,0,6,77,324,50,45,"MIT License",false,"master",[26,27,28],"asynchronous","networking","rust","2026-06-12 02:00:36","*[TokioConf 2026 program and tickets are now available!](https:\u002F\u002Ftokioconf.com)*\n\n---\n\n# Tokio\n\nA runtime for writing reliable, asynchronous, and slim applications with\nthe Rust programming language. It is:\n\n* **Fast**: Tokio's zero-cost abstractions give you bare-metal\n  performance.\n\n* **Reliable**: Tokio leverages Rust's ownership, type system, and\n  concurrency model to reduce bugs and ensure thread safety.\n\n* **Scalable**: Tokio has a minimal footprint, and handles backpressure\n  and cancellation naturally.\n\n[![Crates.io][crates-badge]][crates-url]\n[![MIT licensed][mit-badge]][mit-url]\n[![Build Status][actions-badge]][actions-url]\n[![Discord chat][discord-badge]][discord-url]\n\n[crates-badge]: https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Ftokio.svg\n[crates-url]: https:\u002F\u002Fcrates.io\u002Fcrates\u002Ftokio\n[mit-badge]: https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg\n[mit-url]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Fblob\u002Fmaster\u002FLICENSE\n[actions-badge]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Fworkflows\u002FCI\u002Fbadge.svg\n[actions-url]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Factions?query=workflow%3ACI+branch%3Amaster\n[discord-badge]: https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F500028886025895936.svg?logo=discord&style=flat-square\n[discord-url]: https:\u002F\u002Fdiscord.gg\u002Ftokio\n\n[Website](https:\u002F\u002Ftokio.rs) |\n[Guides](https:\u002F\u002Ftokio.rs\u002Ftokio\u002Ftutorial) |\n[API Docs](https:\u002F\u002Fdocs.rs\u002Ftokio\u002Flatest\u002Ftokio) |\n[Chat](https:\u002F\u002Fdiscord.gg\u002Ftokio)\n\n## Overview\n\nTokio is an event-driven, non-blocking I\u002FO platform for writing\nasynchronous applications with the Rust programming language. At a high\nlevel, it provides a few major components:\n\n* A multithreaded, work-stealing based task [scheduler].\n* A reactor backed by the operating system's event queue (epoll, kqueue,\n  IOCP, etc.).\n* Asynchronous [TCP and UDP][net] sockets.\n\nThese components provide the runtime components necessary for building\nan asynchronous application.\n\n[net]: https:\u002F\u002Fdocs.rs\u002Ftokio\u002Flatest\u002Ftokio\u002Fnet\u002Findex.html\n[scheduler]: https:\u002F\u002Fdocs.rs\u002Ftokio\u002Flatest\u002Ftokio\u002Fruntime\u002Findex.html\n\n## Example\n\nA basic TCP echo server with Tokio.\n\nMake sure you enable the full features of the tokio crate on Cargo.toml:\n\n```toml\n[dependencies]\ntokio = { version = \"1.52.2\", features = [\"full\"] }\n```\nThen, on your main.rs:\n\n```rust,no_run\nuse tokio::net::TcpListener;\nuse tokio::io::{AsyncReadExt, AsyncWriteExt};\n\n#[tokio::main]\nasync fn main() -> Result\u003C(), Box\u003Cdyn std::error::Error>> {\n    let listener = TcpListener::bind(\"127.0.0.1:8080\").await?;\n\n    loop {\n        let (mut socket, _) = listener.accept().await?;\n\n        tokio::spawn(async move {\n            let mut buf = [0; 1024];\n\n            \u002F\u002F In a loop, read data from the socket and write the data back.\n            loop {\n                let n = match socket.read(&mut buf).await {\n                    \u002F\u002F socket closed\n                    Ok(0) => return,\n                    Ok(n) => n,\n                    Err(e) => {\n                        eprintln!(\"failed to read from socket; err = {:?}\", e);\n                        return;\n                    }\n                };\n\n                \u002F\u002F Write the data back\n                if let Err(e) = socket.write_all(&buf[0..n]).await {\n                    eprintln!(\"failed to write to socket; err = {:?}\", e);\n                    return;\n                }\n            }\n        });\n    }\n}\n```\n\nMore examples can be found [here][examples]. For a larger \"real world\" example, see the\n[mini-redis] repository.\n\n[examples]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Ftree\u002Fmaster\u002Fexamples\n[mini-redis]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Fmini-redis\u002F\n\nTo see a list of the available feature flags that can be enabled, check our\n[docs][feature-flag-docs].\n\n## Getting Help\n\nFirst, see if the answer to your question can be found in the [Guides] or the\n[API documentation]. If the answer is not there, there is an active community in\nthe [Tokio Discord server][chat]. We would be happy to try to answer your\nquestion. You can also ask your question on [the discussions page][discussions].\n\n[Guides]: https:\u002F\u002Ftokio.rs\u002Ftokio\u002Ftutorial\n[API documentation]: https:\u002F\u002Fdocs.rs\u002Ftokio\u002Flatest\u002Ftokio\n[chat]: https:\u002F\u002Fdiscord.gg\u002Ftokio\n[discussions]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Fdiscussions\n[feature-flag-docs]: https:\u002F\u002Fdocs.rs\u002Ftokio\u002F#feature-flags\n\n## Contributing\n\n:balloon: Thanks for your help improving the project! We are so happy to have\nyou! We have a [contributing guide][guide] to help you get involved in the Tokio\nproject.\n\n[guide]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Fblob\u002Fmaster\u002Fdocs\u002Fcontributing\u002FREADME.md\n\n## Related Projects\n\nIn addition to the crates in this repository, the Tokio project also maintains\nseveral other libraries, including:\n\n* [`axum`]: A web application framework that focuses on ergonomics and modularity.\n\n* [`hyper`]: A fast and correct HTTP\u002F1.1 and HTTP\u002F2 implementation for Rust.\n\n* [`tonic`]: A gRPC over HTTP\u002F2 implementation focused on high performance, interoperability, and flexibility.\n\n* [`warp`]: A super-easy, composable, web server framework for warp speeds.\n\n* [`tower`]: A library of modular and reusable components for building robust networking clients and servers.\n\n* [`tracing`] (formerly `tokio-trace`): A framework for application-level tracing and async-aware diagnostics.\n\n* [`mio`]: A low-level, cross-platform abstraction over OS I\u002FO APIs that powers `tokio`.\n\n* [`bytes`]: Utilities for working with bytes, including efficient byte buffers.\n\n* [`loom`]: A testing tool for concurrent Rust code.\n\n[`axum`]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Faxum\n[`warp`]: https:\u002F\u002Fgithub.com\u002Fseanmonstar\u002Fwarp\n[`hyper`]: https:\u002F\u002Fgithub.com\u002Fhyperium\u002Fhyper\n[`tonic`]: https:\u002F\u002Fgithub.com\u002Fhyperium\u002Ftonic\n[`tower`]: https:\u002F\u002Fgithub.com\u002Ftower-rs\u002Ftower\n[`loom`]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Floom\n[`tracing`]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftracing\n[`mio`]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Fmio\n[`bytes`]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Fbytes\n\n## Changelog\n\nThe Tokio repository contains multiple crates. Each crate has its own changelog.\n\n * `tokio` - [view changelog](https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Fblob\u002Fmaster\u002Ftokio\u002FCHANGELOG.md)\n * `tokio-util` - [view changelog](https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Fblob\u002Fmaster\u002Ftokio-util\u002FCHANGELOG.md)\n * `tokio-stream` - [view changelog](https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Fblob\u002Fmaster\u002Ftokio-stream\u002FCHANGELOG.md)\n * `tokio-macros` - [view changelog](https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Fblob\u002Fmaster\u002Ftokio-macros\u002FCHANGELOG.md)\n * `tokio-test` - [view changelog](https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Fblob\u002Fmaster\u002Ftokio-test\u002FCHANGELOG.md)\n\n## Supported Rust Versions\n\n\u003C!--\nWhen updating this, also update:\n- .github\u002Fworkflows\u002Fci.yml\n- CONTRIBUTING.md\n- README.md\n- tokio\u002FREADME.md\n- tokio\u002FCargo.toml\n- tokio-util\u002FCargo.toml\n- tokio-test\u002FCargo.toml\n- tokio-stream\u002FCargo.toml\n-->\n\nTokio will keep a rolling MSRV (minimum supported rust version) policy of **at\nleast** 6 months. When increasing the MSRV, the new Rust version must have been\nreleased at least six months ago. The current MSRV is 1.71.\n\nNote that the MSRV is not increased automatically, and only as part of a minor\nrelease. The MSRV history for past minor releases can be found below:\n\n * 1.48 to now  - Rust 1.71\n * 1.39 to 1.47 - Rust 1.70\n * 1.30 to 1.38 - Rust 1.63\n * 1.27 to 1.29 - Rust 1.56\n * 1.17 to 1.26 - Rust 1.49\n * 1.15 to 1.16 - Rust 1.46\n * 1.0 to 1.14 - Rust 1.45\n\nNote that although we try to avoid the situation where a dependency transitively\nincreases the MSRV of Tokio, we do not guarantee that this does not happen.\nHowever, every minor release will have some set of versions of dependencies that\nworks with the MSRV of that minor release.\n\n## Release schedule\n\nTokio doesn't follow a fixed release schedule, but we typically make one minor\nrelease each month. We make patch releases for bugfixes as necessary.\n\n## Bug patching policy\n\nFor the purposes of making patch releases with bugfixes, we have designated\ncertain minor releases as LTS (long term support) releases. Whenever a bug\nwarrants a patch release with a fix for the bug, it will be backported and\nreleased as a new patch release for each LTS minor version. Our current LTS\nreleases are:\n\n * `1.47.x` - LTS release until September 2026. (MSRV 1.70)\n * `1.51.x` - LTS release until March 2027. (MSRV 1.71)\n\nEach LTS release will continue to receive backported fixes for at least a year.\nIf you wish to use a fixed minor release in your project, we recommend that you\nuse an LTS release.\n\nTo use a fixed minor version, you can specify the version with a tilde. For\nexample, to specify that you wish to use the newest `1.47.x` patch release, you\ncan use the following dependency specification:\n```text\ntokio = { version = \"~1.47\", features = [...] }\n```\n\n### Previous LTS releases\n\n * `1.8.x` - LTS release until February 2022.\n * `1.14.x` - LTS release until June 2022.\n * `1.18.x` - LTS release until June 2023.\n * `1.20.x` - LTS release until September 2023.\n * `1.25.x` - LTS release until March 2024.\n * `1.32.x` - LTS release until September 2024.\n * `1.36.x` - LTS release until March 2025.\n * `1.38.x` - LTS release until July 2025.\n * `1.43.x` - LTS release until March 2026.\n\n## License\n\nThis project is licensed under the [MIT license].\n\n[MIT license]: https:\u002F\u002Fgithub.com\u002Ftokio-rs\u002Ftokio\u002Fblob\u002Fmaster\u002FLICENSE\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in Tokio by you shall be licensed as MIT, without any additional\nterms or conditions.\n","Tokio 是一个用于使用 Rust 语言编写可靠异步应用程序的运行时。它提供了 I\u002FO、网络、调度和定时器等功能，具有零成本抽象带来的高性能、利用 Rust 的所有权和类型系统减少错误并确保线程安全的特点，以及自然处理背压和取消的小内存占用优势。适用于需要构建高效、可扩展且可靠的异步服务或应用的场景，如网络服务器、微服务等。",2,"2026-06-11 02:47:39","top_all"]