PackageTrack
Sign in Get early access

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 2022
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 12
  1. 0.2.12 14 Dec 2022
    Release notes

    Changed

    • madsim: No longer initialize the global logger on #[main] or #[test].

    Fixed

    • madsim: Fix Instant interception on ARM64 macOS caused by change in Rust nightly.
    Open source →
  2. 0.2.5 02 Sep 2022
    Release notes

    Changed

    • madsim: Forbid creating system thread in simulation.
    • madsim: Drop futures on killing node.
    • madsim: Make Endpoint clonable.
    Open source →
  3. 0.2.0 10 Aug 2022
    Release notes

    Added

    • madsim-tonic: Add missing methods of Endpoint and Server.

    Fixed

    • madsim-tokio: #[tokio::main] no longer requires madsim crate.

    Removed

    • madsim: Remove collections module since we can use std's directly.
    Open source →
  4. 0.2.0-alpha.7 06 Aug 2022 pre-release
    Release notes

    Added

    • madsim: Allow user to set the number of CPU cores and simulate std::thread::available_parallelism.
    • madsim: Add MADSIM_TEST_JOBS environment 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 by check_determinism.
    Open source →
  5. 0.2.0-alpha.6 01 Aug 2022 pre-release
    Release notes

    Added

    • Make deterministic on rand and std::{collections::{HashMap, HashSet}, time::{SystemTime, Instant}}.

      Exception: rand is not deterministic on linux. use madsim::rand instead.

    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.
    Open source →
  6. 0.2.0-alpha.5 26 Jul 2022 pre-release
    Release notes

    Added

    • Migrate a new crate madsim-tokio-postgres for simulation.
    • madsim-tokio: Add task_local, task::LocalKey, signal::ctrl_c.
    • madsim-tonic: Support Request::remote_addr and returning error from server.

    Fixed

    • madsim: Refactor TCP simulator and fix several bugs. (#18)
    • madsim: Avoid some panics on panicking.
    Open source →
  7. 0.2.0-alpha.4 18 Jul 2022 pre-release
    Release notes

    Added

    • madsim: Add TCP simulation.
    • madsim-tokio: Add task::consume_budget and task::Id.

    Fixed

    • madsim: Avoid duplicate connection and close unused connection on TCP.
    • madsim-tokio: Fix full feature.
    Open source →
  8. 0.2.0-alpha.3 25 May 2022 pre-release
    Release notes

    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.
    Open source →
  9. 0.2.0-alpha.2 21 May 2022 pre-release
    Release notes

    Added

    • Add a new crate madsim-tokio for tokio simulation.
    • madsim/sim: Add time::interval and task::yield_now.
    • madsim/sim: Complete methods for Sleep, Elapsed, JoinError and JoinHandle.
    • madsim-tonic: Add Server::layer but don't implement it.

    Changed

    • Breaking: madsim: Switch JoinHandle to 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.
    Open source →
  10. 0.2.0-alpha.1 12 May 2022 pre-release
    Release notes

    TODO

    Added

    • A real world backend.
    Open source →
  11. 0.1.1 24 Aug 2021
    Release notes

    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.
    Open source →
  12. 0.1.0 22 Aug 2021
    Release notes

    Added

    • Deterministic async runtime.
    • Basic simulated network and file system.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive