Jeff Vander Stoep | b00717e | 2020-12-04 13:34:19 +0100 | [diff] [blame] | 1 | [package] |
| 2 | name = "spin" |
Joel Galenson | 7328d96 | 2021-08-09 10:44:07 -0700 | [diff] [blame] | 3 | version = "0.9.2" |
Jeff Vander Stoep | b00717e | 2020-12-04 13:34:19 +0100 | [diff] [blame] | 4 | authors = [ |
| 5 | "Mathijs van de Nes <git@mathijs.vd-nes.nl>", |
| 6 | "John Ericson <git@JohnEricson.me>", |
| 7 | "Joshua Barretto <joshua.s.barretto@gmail.com>", |
| 8 | ] |
| 9 | license = "MIT" |
| 10 | repository = "https://github.com/mvdnes/spin-rs.git" |
| 11 | keywords = ["spinlock", "mutex", "rwlock"] |
| 12 | description = "Spin-based synchronization primitives" |
| 13 | |
| 14 | [dependencies] |
| 15 | lock_api_crate = { package = "lock_api", version = "0.4", optional = true } |
| 16 | |
| 17 | [features] |
Joel Galenson | 8d7807f | 2021-06-22 10:44:01 -0700 | [diff] [blame] | 18 | default = ["lock_api", "mutex", "spin_mutex", "rwlock", "once", "lazy", "barrier"] |
| 19 | |
| 20 | # Enables `Mutex`. Must be used with either `spin_mutex` or `use_ticket_mutex`. |
| 21 | mutex = [] |
| 22 | |
| 23 | # Enables `SpinMutex` and the default spin mutex implementation for `Mutex`. |
| 24 | spin_mutex = ["mutex"] |
| 25 | |
| 26 | # Enables `TicketMutex`. |
| 27 | ticket_mutex = ["mutex"] |
| 28 | |
| 29 | # Enables the non-default ticket mutex implementation for `Mutex`. |
| 30 | use_ticket_mutex = ["mutex", "ticket_mutex"] |
| 31 | |
| 32 | # Enables `RwLock`. |
| 33 | rwlock = [] |
| 34 | |
| 35 | # Enables `Once`. |
| 36 | once = [] |
| 37 | |
| 38 | # Enables `Lazy`. |
| 39 | lazy = ["once"] |
| 40 | |
| 41 | # Enables `Barrier`. Because this feature uses `mutex`, either `spin_mutex` or `use_ticket_mutex` must be enabled. |
| 42 | barrier = ["mutex"] |
| 43 | |
| 44 | # Enables `lock_api`-compatible types that use the primitives in this crate internally. |
Jeff Vander Stoep | b00717e | 2020-12-04 13:34:19 +0100 | [diff] [blame] | 45 | lock_api = ["lock_api_crate"] |
Joel Galenson | 8d7807f | 2021-06-22 10:44:01 -0700 | [diff] [blame] | 46 | |
| 47 | # Enables std-only features such as yield-relaxing. |
Jeff Vander Stoep | b00717e | 2020-12-04 13:34:19 +0100 | [diff] [blame] | 48 | std = [] |
Joel Galenson | 8d7807f | 2021-06-22 10:44:01 -0700 | [diff] [blame] | 49 | |
| 50 | [package.metadata.docs.rs] |
| 51 | all-features = true |
| 52 | rustdoc-args = ["--cfg", "docsrs"] |