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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[]
= "spin"
= "0.9.8"
= [
"Mathijs van de Nes <git@mathijs.vd-nes.nl>",
"John Ericson <git@JohnEricson.me>",
"Joshua Barretto <joshua.s.barretto@gmail.com>",
]
= "MIT"
= "https://github.com/mvdnes/spin-rs.git"
= ["spinlock", "mutex", "rwlock"]
= "Spin-based synchronization primitives"
= "1.38"
[]
= { = "lock_api", = "0.4", = true }
= { = "1", = true, = false }
[]
= ["lock_api", "mutex", "spin_mutex", "rwlock", "once", "lazy", "barrier"]
# Enables `Mutex`. Must be used with either `spin_mutex` or `use_ticket_mutex`.
= []
# Enables `SpinMutex` and the default spin mutex implementation for `Mutex`.
= ["mutex"]
# Enables `TicketMutex`.
= ["mutex"]
# Enables `FairMutex`.
= ["mutex"]
# Enables the non-default ticket mutex implementation for `Mutex`.
= ["mutex", "ticket_mutex"]
# Enables `RwLock`.
= []
# Enables `Once`.
= []
# Enables `Lazy`.
= ["once"]
# Enables `Barrier`. Because this feature uses `mutex`, either `spin_mutex` or `use_ticket_mutex` must be enabled.
= ["mutex"]
# Enables `lock_api`-compatible types that use the primitives in this crate internally.
= ["lock_api_crate"]
# Enables std-only features such as yield-relaxing.
= []
# Use the portable_atomic crate to support platforms without native atomic operations.
# The `portable_atomic_unsafe_assume_single_core` cfg or `critical-section` feature
# of `portable-atomic` crate must also be set by the final binary crate.
# When using the cfg, note that it is unsafe and enabling it for multicore systems is unsound.
# When using the `critical-section` feature, you need to implement the critical-section
# implementation that sound for your system by implementing an unsafe trait.
# See the documentation for the `portable-atomic` crate for more information:
# https://docs.rs/portable-atomic/latest/portable_atomic/#optional-cfg
= ["portable-atomic"]
[]
= true
= ["--cfg", "docsrs"]
[]
= "0.4"
[[]]
= "mutex"
= false
= ["ticket_mutex"]