Skip to content

Make parking_lot optional in tokio#216

Merged
lipanski merged 1 commit into
lipanski:masterfrom
nerodono:make-parking_lot-optional
Feb 21, 2025
Merged

Make parking_lot optional in tokio#216
lipanski merged 1 commit into
lipanski:masterfrom
nerodono:make-parking_lot-optional

Conversation

@nerodono

Copy link
Copy Markdown
Contributor

including parking_lot in the feature set of tokio is quite opinionated, due to cargo features unification, parking_lot may be turned on everywhere where mockito is used. This PR adds way to opt-out parking_lot explicitly.

Why?

One may want to use std mutexes due to, for example, rust-lang/rust#95035 (comment)

@lipanski lipanski merged commit 566364c into lipanski:master Feb 21, 2025
@lipanski

Copy link
Copy Markdown
Owner

Fair enough 👍

@nerodono

nerodono commented Mar 3, 2025

Copy link
Copy Markdown
Contributor Author

can you make release on crates.io with that change?

@lipanski

lipanski commented Mar 4, 2025

Copy link
Copy Markdown
Owner

Published as 1.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants