madsim-macros
Madsim's proc-macro.
0.2.12
6.2M downloads/mo
#4042 most downloaded on crates.io
madsim-rs/madsim
What this package is like to depend on
Last release 4 years ago
no release in 18 months
Ships unpredictably
gaps range from 8 days to 9 months
Nearly every release is documented
notes for 5 of 5 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
12 releases · first in 2021
0 releases in the last 12 months
see the full history below
Release timeline
12 releases · Aug 2021 to Dec 2022Releases
latest 12-
0.2.1214 Dec 2022Release notes
Open source →Changed
- madsim: No longer initialize the global logger on
#[main]or#[test].
Fixed
- madsim: Fix
Instantinterception on ARM64 macOS caused by change in Rust nightly.
- madsim: No longer initialize the global logger on
-
0.2.502 Sep 2022Release notes
Open source →Changed
- madsim: Forbid creating system thread in simulation.
- madsim: Drop futures on killing node.
- madsim: Make
Endpointclonable.
-
0.2.010 Aug 2022Release notes
Open source →Added
- madsim-tonic: Add missing methods of
EndpointandServer.
Fixed
- madsim-tokio:
#[tokio::main]no longer requires madsim crate.
Removed
- madsim: Remove
collectionsmodule since we can use std's directly.
- madsim-tonic: Add missing methods of
-
0.2.0-alpha.706 Aug 2022 pre-releaseRelease notes
Open source →Added
- madsim: Allow user to set the number of CPU cores and simulate
std::thread::available_parallelism. - madsim: Add
MADSIM_TEST_JOBSenvironment variable to set the number of jobs to run simultaneously. - madsim: Introduce runtime
Builder. - madsim: Expose seed via
Handle::seed.
Fixed
- madsim: Fix the local address after bind
0.0.0.0. - madsim-tonic: Client connecting to an invalid address should return error.
Removed
- madsim: Remove
Runtime::{enable_determinism_check, take_rand_log}. Replaced bycheck_determinism.
- madsim: Allow user to set the number of CPU cores and simulate
-
0.2.0-alpha.601 Aug 2022 pre-releaseRelease notes
Open source →Added
-
Make deterministic on
randandstd::{collections::{HashMap, HashSet}, time::{SystemTime, Instant}}.Exception:
randis not deterministic on linux. usemadsim::randinstead.
Changed
- madsim-macros: Every simulation now runs on a new thread to ensure the determinism.
- madsim-tonic: Update tonic to v0.8. Additional system protoc is required.
-
-
0.2.0-alpha.526 Jul 2022 pre-releaseRelease notes
Open source →Added
- Migrate a new crate
madsim-tokio-postgresfor simulation. - madsim-tokio: Add
task_local,task::LocalKey,signal::ctrl_c. - madsim-tonic: Support
Request::remote_addrand returning error from server.
Fixed
- madsim: Refactor TCP simulator and fix several bugs. (#18)
- madsim: Avoid some panics on panicking.
- Migrate a new crate
-
0.2.0-alpha.418 Jul 2022 pre-releaseRelease notes
Open source →Added
- madsim: Add TCP simulation.
- madsim-tokio: Add
task::consume_budgetandtask::Id.
Fixed
- madsim: Avoid duplicate connection and close unused connection on TCP.
- madsim-tokio: Fix
fullfeature.
-
0.2.0-alpha.325 May 2022 pre-releaseRelease notes
Open source →Added
- madsim: Add serde API to
HashMap. - madsim-norandom: A preview library for intercepting libc
getrandom.
Changed
- Breaking: Change the way to enable simulation:
#[cfg(feature = "sim")]->#[cfg(madsim)].
Fixed
- Lock version on madsim dependencies to prevent API broken.
- madsim: Add serde API to
-
0.2.0-alpha.221 May 2022 pre-releaseRelease notes
Open source →Added
- Add a new crate
madsim-tokiofor tokio simulation. - madsim/sim: Add
time::intervalandtask::yield_now. - madsim/sim: Complete methods for
Sleep,Elapsed,JoinErrorandJoinHandle. - madsim-tonic: Add
Server::layerbut don't implement it.
Changed
- Breaking: madsim: Switch
JoinHandleto tokio style which won't cancel task on drop. - madsim-macros: Improve error message on panic in simulation.
Fixed
- madsim: Fix TCP performance issue by setting NODELAY.
- Add a new crate
-
0.2.0-alpha.112 May 2022 pre-release -
0.1.124 Aug 2021Release notes
Open source →Added
- Deterministic check on test.
Changed
- Remove default time limit (300s) on test.
- Improve error message on context missing.
Fixed
- Fix double panic in the executor.
- Fix deterministic in
time::timeout.
-
0.1.022 Aug 2021Release notes
Open source →Added
- Deterministic async runtime.
- Basic simulated network and file system.