1 | [package] |
2 | authors = ["Stjepan Glavina <stjepang@gmail.com>" , "John Nunley <dev@notgull.net>" ] |
3 | description = "Async pipes, channels, mutexes, and more." |
4 | edition = "2018" |
5 | license = "MIT OR Apache-2.0" |
6 | name = "piper" |
7 | repository = "https://github.com/notgull/piper" |
8 | version = "0.2.1" |
9 | rust-version = "1.36" |
10 | |
11 | [features] |
12 | default = ["std" ] |
13 | std = ["fastrand/std" , "futures-io" ] |
14 | portable-atomic = ["atomic-waker/portable-atomic" , "portable_atomic_crate" , "portable-atomic-util" ] |
15 | |
16 | [dependencies] |
17 | atomic-waker = "1.1.0" |
18 | fastrand = { version = "2.0.0" , default-features = false } |
19 | futures-io = { version = "0.3.28" , optional = true } |
20 | portable-atomic-util = { version = "0.1.2" , features = ["alloc" ], optional = true } |
21 | |
22 | [dependencies.portable_atomic_crate] |
23 | package = "portable-atomic" |
24 | version = "1.2.0" |
25 | default-features = false |
26 | optional = true |
27 | |
28 | [dev-dependencies] |
29 | async-channel = "1.8.0" |
30 | async-executor = "1.5.1" |
31 | async-io = "1.13.0" |
32 | criterion = { version = "0.4.0" , default-features = false, features = ["cargo_bench_support" ] } |
33 | easy-parallel = "3.2.0" |
34 | futures-lite = "1.12.0" |
35 | |
36 | [[bench]] |
37 | name = "pipe_comparison" |
38 | harness = false |
39 | |