1[package]
2name = "flume"
3version = "0.11.0"
4authors = ["Joshua Barretto <joshua.s.barretto@gmail.com>"]
5edition = "2018"
6description = "A blazingly fast multi-producer channel"
7repository = "https://github.com/zesterer/flume"
8documentation = "https://docs.rs/flume"
9keywords = ["mpsc", "fifo", "channel", "thread", "mpmc"]
10categories = ["concurrency", "data-structures"]
11license = "Apache-2.0/MIT"
12readme = "README.md"
13exclude = [
14 "/.github",
15 "/misc",
16]
17
18[features]
19# Use a spinlock internally (may be faster on some platforms)
20spin = []
21select = []
22async = ["futures-sink", "futures-core"]
23eventual-fairness = ["select", "nanorand"]
24default = ["async", "select", "eventual-fairness"]
25
26[dependencies]
27spin1 = { package = "spin", version = "0.9.8", features = ["mutex"] }
28futures-sink = { version = "0.3", default_features = false, optional = true }
29futures-core = { version = "0.3", default_features = false, optional = true }
30nanorand = { version = "0.7", features = ["getrandom"], optional = true }
31
32[dev-dependencies]
33#flume-test = { path = "../flume-test" }
34crossbeam-channel = "0.5.5"
35crossbeam-utils = "0.8.10"
36criterion = "0.3.4"
37rand = "0.8.3"
38async-std = { version = "1.9.0", features = ["attributes", "unstable"] }
39futures = { version = "^0.3", features = ["std"] }
40waker-fn = "1.1.0"
41tokio = { version = "^1.16.1", features = ["rt", "macros"] }
42
43[[bench]]
44name = "basic"
45harness = false
46