You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This folder contains the implementation and wrapper that enables testing of [parking_lot](https://crates.io/crates/parking_lot) applications with Shuttle.
4
+
5
+
## How to use
6
+
7
+
To use it, add the following in your Cargo.toml:
8
+
9
+
```
10
+
[features]
11
+
shuttle = [
12
+
"parking_lot/shuttle",
13
+
]
14
+
15
+
[dependencies]
16
+
parking_lot = { package = "shuttle-parking_lot", version = "VERSION_NUMBER" }
17
+
```
18
+
19
+
The code will then 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.
20
+
21
+
## Limitations
22
+
23
+
Shuttle's parking_lot functionality is currently limited to a subset of the `Mutex` and `RwLock` primitives. If your project needs functionality which is not currently supported, please file an issue or, better yet, open a PR to contribute the functionality.
0 commit comments