RepoPilot

tokio-rs / tokio

Search tokio-rs/tokio

GitHub

Code

How tokio-rs/tokio is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely public API
  4. Likely public API
  5. Suggested starting pointAI
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a new async file operation

  • Add a public export and doctest example in tokio/src/fs/mod.rs

Add a new I/O utility extension method

  • Add trait method to the appropriate ext trait (AsyncReadExt, AsyncWriteExt) in tokio/src/io/util/

Add support for a new event notification backend

  • Create platform-specific module (e.g., tokio/src/io/epoll.rs or extend tokio/src/io/uring/mod.rs) with syscall bindings
  • Implement readiness polling logic compatible with poll_evented and AsyncFd abstractions
  • Conditionally enable via feature flag in tokio/Cargo.toml and add cfg guards in lib.rs

Add platform-specific I/O operation (uring example)

  • Expose through tokio/src/io/uring/mod.rs and wire into tokio/src/io/mod.rs with feature gate

Change the public API

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.

Code quality and hotspots

Largest source files

  • Branch points41 per file on average
  • Code issues0 errors, 5 warnings
  • Largest file2,736 lines
  • Hotspot load2 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions7 workflows
  • Tests312 test filesRust test · 0.61 test files per source file (file count, not coverage)
  • Dependency updatesNo config detected

Test folders: tests-build/tests/fail · tokio-stream/tests · tests-build/tests/pass

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.