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