File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #![ cfg_attr( not( any( feature = "tokio" , feature = "simulation" ) ) , no_std) ]
2-
3- //! Runtime and deterministic simulation utilities shared by core and DST.
4-
5- extern crate alloc;
6-
71use core:: {
82 fmt,
93 future:: Future ,
Original file line number Diff line number Diff line change 1- //! Minimal asynchronous executor adapted from madsim's `sim/task` loop.
2-
31use alloc:: { collections:: BTreeMap , sync:: Arc , vec:: Vec } ;
42use core:: {
53 fmt,
Original file line number Diff line number Diff line change 1- //! Local deterministic simulation runtime.
2- //!
3- //! This module is deliberately small, but its executor shape follows madsim's:
4- //! futures are scheduled as runnable tasks and the ready queue is sampled by a
5- //! deterministic RNG instead of being driven by a package-level async runtime.
6-
71pub mod buggify;
82mod executor;
93mod rng;
Original file line number Diff line number Diff line change 1- //! Virtual time for the local simulation runtime.
2-
31mod sleep;
42
53use alloc:: { collections:: BTreeMap , sync:: Arc , vec:: Vec } ;
You can’t perform that action at this time.
0 commit comments