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]
13rust-version = "1.38"
14name = "spin"
15version = "0.9.8"
16authors = [
17    "Mathijs van de Nes <[email protected]>",
18    "John Ericson <[email protected]>",
19    "Joshua Barretto <[email protected]>",
20]
21description = "Spin-based synchronization primitives"
22readme = "README.md"
23keywords = [
24    "spinlock",
25    "mutex",
26    "rwlock",
27]
28license = "MIT"
29repository = "https://github.com/mvdnes/spin-rs.git"
30
31[package.metadata.docs.rs]
32all-features = true
33rustdoc-args = [
34    "--cfg",
35    "docsrs",
36]
37
38[[bench]]
39name = "mutex"
40harness = false
41required-features = ["ticket_mutex"]
42
43[dependencies.lock_api_crate]
44version = "0.4"
45optional = true
46package = "lock_api"
47
48[dependencies.portable-atomic]
49version = "1"
50optional = true
51default-features = false
52
53[dev-dependencies.criterion]
54version = "0.4"
55
56[features]
57barrier = ["mutex"]
58default = [
59    "lock_api",
60    "mutex",
61    "spin_mutex",
62    "rwlock",
63    "once",
64    "lazy",
65    "barrier",
66]
67fair_mutex = ["mutex"]
68lazy = ["once"]
69lock_api = ["lock_api_crate"]
70mutex = []
71once = []
72portable_atomic = ["portable-atomic"]
73rwlock = []
74spin_mutex = ["mutex"]
75std = []
76ticket_mutex = ["mutex"]
77use_ticket_mutex = [
78    "mutex",
79    "ticket_mutex",
80]
81