blob: 8961f25768d0017e5b546bc70c4e34bc917c5547 [file] [log] [blame]
Jakub Koturfc1672b2020-12-21 17:28:14 +01001[package]
2name = "crossbeam-epoch"
3# When publishing a new version:
4# - Update CHANGELOG.md
5# - Update README.md
6# - Create "crossbeam-epoch-X.Y.Z" git tag
Joel Galenson0d440922021-04-01 15:34:31 -07007version = "0.9.3"
Jakub Koturfc1672b2020-12-21 17:28:14 +01008authors = ["The Crossbeam Project Developers"]
9edition = "2018"
10license = "MIT OR Apache-2.0"
Jakub Koturfc1672b2020-12-21 17:28:14 +010011repository = "https://github.com/crossbeam-rs/crossbeam"
12homepage = "https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-epoch"
13documentation = "https://docs.rs/crossbeam-epoch"
14description = "Epoch-based garbage collection"
15keywords = ["lock-free", "rcu", "atomic", "garbage"]
16categories = ["concurrency", "memory-management", "no-std"]
17
18[features]
19default = ["std"]
20
21# Enable to use APIs that require `std`.
22# This is enabled by default.
23std = ["alloc", "crossbeam-utils/std", "lazy_static"]
24
25# Enable to use APIs that require `alloc`.
26# This is enabled by default and also enabled if the `std` feature is enabled.
27alloc = []
28
29# Enable to use of unstable functionality.
30# This is disabled by default and requires recent nightly compiler.
31# Note that this is outside of the normal semver guarantees and minor versions
32# of crossbeam may make breaking changes to them at any time.
Joel Galenson0d440922021-04-01 15:34:31 -070033nightly = ["crossbeam-utils/nightly", "const_fn"]
Jakub Koturfc1672b2020-12-21 17:28:14 +010034
Joel Galenson0d440922021-04-01 15:34:31 -070035# Enable the use of loom for concurrency testing.
36#
37# This configuration option is outside of the normal semver guarantees: minor
38# versions of crossbeam may make breaking changes to it at any time.
39loom = ["loom-crate", "crossbeam-utils/loom"]
Jakub Koturfc1672b2020-12-21 17:28:14 +010040
41[dependencies]
42cfg-if = "1"
Joel Galenson0d440922021-04-01 15:34:31 -070043const_fn = { version = "0.4.4", optional = true }
Jakub Koturfc1672b2020-12-21 17:28:14 +010044memoffset = "0.6"
45
Joel Galenson0d440922021-04-01 15:34:31 -070046# Enable the use of loom for concurrency testing.
47#
48# This configuration option is outside of the normal semver guarantees: minor
49# versions of crossbeam may make breaking changes to it at any time.
50[target.'cfg(crossbeam_loom)'.dependencies]
51loom-crate = { package = "loom", version = "0.4", optional = true }
52
Jakub Koturfc1672b2020-12-21 17:28:14 +010053[dependencies.crossbeam-utils]
Joel Galenson0d440922021-04-01 15:34:31 -070054version = "0.8.3"
Jakub Koturfc1672b2020-12-21 17:28:14 +010055path = "../crossbeam-utils"
56default-features = false
57
58[dependencies.lazy_static]
59version = "1.4.0"
60optional = true
61
62[dependencies.scopeguard]
63version = "1.1.0"
64default-features = false
65
66[dev-dependencies]
Joel Galenson0d440922021-04-01 15:34:31 -070067rand = "0.8"