-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
52 lines (44 loc) · 1.29 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
description = """
An implementation of Mellor-Crummey and Scott contention-free
lock for mutual exclusion, referred to as MCS lock.
"""
name = "mcslock"
version = "0.4.0"
edition = "2021"
# NOTE: Rust 1.65 is required for GATs and let-else statements.
rust-version = "1.65.0"
license = "MIT OR Apache-2.0"
readme = "README.md"
documentation = "https://docs.rs/mcslock"
repository = "https://github.com/pedromfedricci/mcslock"
authors = ["Pedro de Matos Fedricci <pedromfedricci@gmail.com>"]
categories = ["algorithms", "concurrency", "no-std", "no-std::no-alloc"]
keywords = ["mutex", "no_std", "spinlock", "synchronization"]
[features]
# NOTE: Features `yield`, `thread_local` require std.
yield = []
thread_local = []
barging = []
lock_api = ["dep:lock_api"]
[dependencies.lock_api]
version = "0.4"
default-features = false
optional = true
[target.'cfg(loom)'.dev-dependencies.loom]
version = "0.7"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = ["cfg(loom)", "cfg(tarpaulin)", "cfg(tarpaulin_include)"]
[[example]]
name = "barging"
required-features = ["barging"]
[[example]]
name = "thread_local"
required-features = ["thread_local"]
[[example]]
name = "lock_api"
required-features = ["lock_api", "barging"]