shuttle-sync 0.1.0

sync wrapper for the Shuttle concurrency testing tool.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 0 items with examples
  • Size
  • Source code size: 13.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 38.19 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 38s Average build duration of successful builds.
  • all releases: 38s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sarsko

Shuttle support for std::sync

This crate contains the wrapper that enables testing of applications that use std::sync with Shuttle.

How to use

To use it, add the following in your Cargo.toml:

[features]
shuttle = [
   "shuttle-sync/shuttle",
]

[dependencies]
shuttle-sync = "VERSION_NUMBER"

Then swap usages of std::sync with shuttle_sync::sync. The code will behave as before when the shuttle feature flag is not provided, and will run with Shuttle-compatible primitives when the shuttle feature flag is provided.