Registry / testing / shuttle

shuttle

JSON →
library0.9.1rscratesunverified

Provides a library for testing concurrent Rust code with deterministic scheduling.

# Cargo.toml [dependencies] shuttle = "0.9.1"
INSTALL
IMPORT
SIG · SHUTTLE
S
shuttle
testingrustv0.9.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

spawn
use shuttle::thread::spawn;

Spawn a thread using shuttle's deterministic scheduler.

use shuttle::thread::spawn; fn main() { let handle = spawn(|| println!("Hello from shuttle thread")); handle.join().unwrap(); }
Debug
Known issues
gotchaShuttle replaces std::thread; mixing with real threads may cause issues.
fix
Use shuttle::thread exclusively within tests.
affects: >=0.9.0
Upgrade
Version history
0.9.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
shuttle — cargo add shuttle · libregistry