• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

powersemmi / ruststream / 41061923150
96%

Build:
DEFAULT BRANCH: main
Ran 30 Oct 2026 01:25PM UTC
Jobs 1
Files 177
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Oct 2026 01:16PM UTC coverage: 95.961% (-0.1%) from 96.067%
41061923150

push

github

web-flow
feat: a runtime-agnostic delivery body and the tokio runner (#625)

* feat: the runner trait set and the tokio runner crate

The shared delivery body gets the two traits every runtime implements for it:
Clock, with its timer as an associated type, and ShutdownWait, the flag a
running loop checks and the wait a parked one parks on. The new crate
ruststream-runtime-tokio implements the clock over tokio's timers, and
ruststream::time::sleep sleeps on it.

* test: a service's sleep follows the harness clock

A hook that sleeps through ruststream::time::sleep stays pending until
TestApp::advance moves the clock past the sleep.

* refactor(runtime): a delivery body generic over the runner's traits

The sequential loop, the per-delivery dispatch and the batch run no longer
name tokio. The loop is generic over the shutdown it reads (ShutdownWait plus
Halt), the context reports a fail-fast through Halt, and what a delivery leaves
behind (a continuation, a hook, a deferred copy) goes to the runner through
Detach. The body is bounded on the local twins of the contract; the tokio
spawn sites keep their Send bounds and prove the future Send through them.

Routers mount into a MountSink trait the runner implements: the mount builds
what opens a subscription, the runner applies the app's layers and spawns.
MainRuntime is read from the runner (a thread-local on dedicated threads),
so the delivery no longer carries it; Context::main_runtime becomes the
MainRuntimeExt prelude trait, and Ctx<MainRuntime> reads through a ReadKey
route a runner can join.

* refactor: move what calls tokio into ruststream-runtime-tokio

The app builder and its lifecycle, MainRuntime, the shutdown signal, the
spawning half of the dispatch (worker pools, keyed lanes, dedicated threads),
the router sink and Buffered move to the tokio runner crate, with their unit
tests. ruststream-runtime keeps the delivery body and no longer depends on
tokio, tokio-util or rtrb outside its testing feature.

... (continued)

1296 of 1361 new or added lines in 40 files covered. (95.22%)

3 existing lines in 1 file now uncovered.

27205 of 28350 relevant lines covered (95.96%)

1006.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
44.44
crates/ruststream-embassy-probe/src/detach.rs
10
76.19
crates/ruststream-embassy-probe/src/stop.rs
9
55.0
crates/ruststream-runtime-tokio/src/dispatch/fixtures.rs
6
53.85
crates/ruststream-embassy-probe/src/clock.rs
6
93.99
-2.13% crates/ruststream-runtime/src/redelivery.rs
5
98.44
crates/ruststream-runtime-tokio/src/dispatch.rs
5
79.45
-5.84% crates/ruststream-runtime/src/lifecycle.rs
4
97.87
crates/ruststream-runtime-tokio/src/sink.rs
3
94.12
crates/ruststream-embassy-probe/src/frames.rs
3
85.26
-2.51% crates/ruststream-runtime/src/batch/carried.rs
2
98.29
0.11% crates/ruststream-runtime/src/batch/settle.rs
1
99.32
-0.68% crates/ruststream-runtime/src/dispatch/delivery.rs
1
90.08
7.78% crates/ruststream-runtime/src/testkit.rs

Coverage Regressions

Lines Coverage ∆ File
3
62.96
-12.04% crates/ruststream-runtime/src/dispatch/fixtures.rs
Jobs
ID Job ID Ran Files Coverage
1 41061923150.1 30 Oct 2026 01:25PM UTC 177
95.96
GitHub Action Run
Source Files on build 41061923150
  • Tree
  • List 177
  • Changed 55
  • Source Changed 55
  • Coverage Changed 33
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41061923150
  • 646254ce on github
  • Prev Build on main (#41052501284)
  • Next Build on main (#41120188406)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc