aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
blob: 0a4f8cd2052f7e7134479906ee32543452888bf1 (plain)
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
76
77
78
79
80
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
rust-version = "1.38"
name = "spin"
version = "0.9.7"
authors = [
    "Mathijs van de Nes <git@mathijs.vd-nes.nl>",
    "John Ericson <git@JohnEricson.me>",
    "Joshua Barretto <joshua.s.barretto@gmail.com>",
]
description = "Spin-based synchronization primitives"
readme = "README.md"
keywords = [
    "spinlock",
    "mutex",
    "rwlock",
]
license = "MIT"
repository = "https://github.com/mvdnes/spin-rs.git"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[[bench]]
name = "mutex"
harness = false
required-features = ["ticket_mutex"]

[dependencies.lock_api_crate]
version = "0.4"
optional = true
package = "lock_api"

[dependencies.portable-atomic]
version = "1"
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.4"

[features]
barrier = ["mutex"]
default = [
    "lock_api",
    "mutex",
    "spin_mutex",
    "rwlock",
    "once",
    "lazy",
    "barrier",
]
fair_mutex = ["mutex"]
lazy = ["once"]
lock_api = ["lock_api_crate"]
mutex = []
once = []
portable_atomic = ["portable-atomic"]
rwlock = []
spin_mutex = ["mutex"]
std = []
ticket_mutex = ["mutex"]
use_ticket_mutex = [
    "mutex",
    "ticket_mutex",
]