# System map — tokio-rs/tokio

> Canonical page: https://codevetter.com/unpack/tokio/system-map

# System map — tokio-rs/tokio

Scanned commit 2746c3ae26f8ac0af6023843a7f23d419c334efe (2026-10-02). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

The repository is a Cargo workspace organized around a public runtime crate and companion libraries. Applications enter through Rust APIs or generated main/test wrappers; scheduler and driver implementations remain internal. State lives primarily in memory, while filesystem and subprocess APIs cross into operating-system resources. CI and documentation hosting are separate operational surfaces.
- Cargo.toml defines five public crates and five internal workspace members, with crates.io patches redirecting companion dependencies to local source. — [Cargo.toml#L1-L23](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/Cargo.toml#L1-L23)
- The tokio facade exposes feature-gated fs, process, runtime, signal, sync, task, and time modules; spawn is re-exported when rt is enabled. — [tokio/src/lib.rs#L564-L625](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/lib.rs#L564-L625)
- Builder::build selects current-thread or multi-thread construction; Runtime::block_on enters runtime context before dispatching to that scheduler. — [tokio/src/runtime/builder.rs#L1144-L1151](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/builder.rs#L1144-L1151) [tokio/src/runtime/runtime.rs#L343-L382](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/runtime.rs#L343-L382)
- The multi-thread scheduler owns workers with transferable cores; its implementation explicitly describes work stealing and core handoff during block_in_place. — [tokio/src/runtime/scheduler/multi_thread/mod.rs#L49-L78](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/scheduler/multi_thread/mod.rs#L49-L78) [tokio/src/runtime/scheduler/multi_thread/worker.rs#L1-L5](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/scheduler/multi_thread/worker.rs#L1-L5)
- Driver::new assembles I/O, signal, clock, and timer components; disabled I/O or timer access produces explicit enable_io/enable_time panic messages. — [tokio/src/runtime/driver.rs#L47-L65](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/driver.rs#L47-L65) [tokio/src/runtime/driver.rs#L91-L117](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/driver.rs#L91-L117)
- The blocking pool handles non-async work, growing to a configured thread limit and queuing further requests; task::spawn_blocking delegates to runtime infrastructure. — [tokio/src/task/blocking.rs#L90-L104](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/task/blocking.rs#L90-L104) [tokio/src/task/blocking.rs#L220-L225](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/task/blocking.rs#L220-L225)
- Companion boundaries separate stream adapters, feature-gated utility modules, procedural runtime wrappers, and testing helpers rather than embedding them all in tokio. — [tokio-stream/src/lib.rs#L76-L117](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio-stream/src/lib.rs#L76-L117) [tokio-util/src/lib.rs#L25-L65](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio-util/src/lib.rs#L25-L65) [tokio-macros/src/entry.rs#L468-L519](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio-macros/src/entry.rs#L468-L519) [tokio-test/src/lib.rs#L12-L35](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio-test/src/lib.rs#L12-L35)
- CI defines nextest and doctest commands across Windows, Linux, and macOS; Netlify builds nightly API documentation into target/doc and redirects / to /tokio. — [.github/workflows/ci.yml#L94-L133](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/.github/workflows/ci.yml#L94-L133) [netlify.toml#L1-L19](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/netlify.toml#L1-L19)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
