| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
rust-version = "1.60" |
| 14 |
name = "spin" |
| 15 |
version = "0.10.1" |
| 16 |
authors = [ |
| 17 |
"Mathijs van de Nes <[email protected]>", |
| 18 |
"John Ericson <[email protected]>", |
| 19 |
"Joshua Barretto <[email protected]>", |
| 20 |
] |
| 21 |
build = false |
| 22 |
autolib = false |
| 23 |
autobins = false |
| 24 |
autoexamples = false |
| 25 |
autotests = false |
| 26 |
autobenches = false |
| 27 |
description = "Spin-based synchronization primitives" |
| 28 |
readme = "README.md" |
| 29 |
keywords = [ |
| 30 |
"spinlock", |
| 31 |
"mutex", |
| 32 |
"rwlock", |
| 33 |
] |
| 34 |
license = "MIT" |
| 35 |
repository = "https://github.com/mvdnes/spin-rs.git" |
| 36 |
|
| 37 |
[package.metadata.docs.rs] |
| 38 |
all-features = true |
| 39 |
rustdoc-args = [ |
| 40 |
"--cfg", |
| 41 |
"docsrs", |
| 42 |
] |
| 43 |
|
| 44 |
[features] |
| 45 |
barrier = ["mutex"] |
| 46 |
default = [ |
| 47 |
"lock_api", |
| 48 |
"mutex", |
| 49 |
"spin_mutex", |
| 50 |
"rwlock", |
| 51 |
"once", |
| 52 |
"lazy", |
| 53 |
"barrier", |
| 54 |
] |
| 55 |
fair_mutex = ["mutex"] |
| 56 |
lazy = ["once"] |
| 57 |
lock_api = ["dep:lock_api_crate"] |
| 58 |
mutex = [] |
| 59 |
once = [] |
| 60 |
portable-atomic = ["dep:portable-atomic"] |
| 61 |
portable_atomic = ["portable-atomic"] |
| 62 |
rwlock = [] |
| 63 |
spin_mutex = ["mutex"] |
| 64 |
std = [] |
| 65 |
ticket_mutex = ["mutex"] |
| 66 |
use_ticket_mutex = [ |
| 67 |
"mutex", |
| 68 |
"ticket_mutex", |
| 69 |
] |
| 70 |
|
| 71 |
[lib] |
| 72 |
name = "spin" |
| 73 |
path = "src/lib.rs" |
| 74 |
|
| 75 |
[[example]] |
| 76 |
name = "debug" |
| 77 |
path = "examples/debug.rs" |
| 78 |
|
| 79 |
[[bench]] |
| 80 |
name = "mutex" |
| 81 |
path = "benches/mutex.rs" |
| 82 |
harness = false |
| 83 |
required-features = ["ticket_mutex"] |
| 84 |
|
| 85 |
[dependencies.lock_api_crate] |
| 86 |
version = "0.4" |
| 87 |
optional = true |
| 88 |
package = "lock_api" |
| 89 |
|
| 90 |
[dependencies.portable-atomic] |
| 91 |
version = "1.3" |
| 92 |
features = ["require-cas"] |
| 93 |
optional = true |
| 94 |
default-features = false |
| 95 |
|
| 96 |
[dev-dependencies.criterion] |
| 97 |
version = "0.4" |