-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
56 lines (46 loc) · 1.71 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[package]
authors = ["Al Liu <scygliu1@gmail.com>"]
name = "wg"
description = "Golang like WaitGroup implementation for sync/async Rust."
homepage = "https://github.com/al8n/wg"
repository = "https://github.com/al8n/wg.git"
documentation = "https://docs.rs/wg/"
readme = "README.md"
version = "0.9.2"
license = "MIT OR Apache-2.0"
keywords = ["waitgroup", "async", "sync", "notify", "wake"]
categories = ["asynchronous", "concurrency", "data-structures", "no-std"]
edition = "2021"
[features]
default = ["std", "parking_lot", "triomphe"]
alloc = ["crossbeam-utils"]
std = ["triomphe?/default", "event-listener?/default", "futures-core?/default"]
triomphe = ["dep:triomphe"]
parking_lot = ["dep:parking_lot"]
future = ["event-listener", "pin-project-lite"]
[dependencies]
parking_lot = { version = "0.12", optional = true }
triomphe = { version = "0.1", optional = true, default-features = false }
event-listener = { version = "5", optional = true, default-features = false, features = ["portable-atomic"] }
pin-project-lite = { version = "0.2", optional = true }
futures-core = { version = "^0.3.31", default-features = false, optional = true }
crossbeam-utils = { version = "0.8", optional = true, default-features = false }
[dev-dependencies]
agnostic-lite = { version = "^0.3.16", features = ["smol", "async-std", "tokio", "time"] }
tokio = { version = "1", features = ["full"] }
async-std = { version = "1", features = ["attributes"] }
smol = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "future"
path = "tests/future.rs"
required-features = ["tokio"]
[[test]]
name = "sync"
path = "tests/sync.rs"
[[example]]
name = "future"
path = "examples/future.rs"
required-features = ["tokio"]