forked from bikeshedder/deadpool
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
55 lines (49 loc) · 1.47 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]
name = "deadpool"
version = "0.9.0-pre"
edition = "2018"
resolver = "2"
authors = ["Michael P. Jung <[email protected]>"]
description = "Dead simple async pool"
keywords = ["async", "database", "pool"]
license = "MIT/Apache-2.0"
repository = "https://github.com/bikeshedder/deadpool"
readme = "README.md"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["managed", "unmanaged"]
managed = ["async-trait"]
unmanaged = []
rt_tokio_1 = ["tokio/time", "tokio/rt"]
rt_async-std_1 = ["async-std"]
[dependencies]
num_cpus = "1.11.1"
# `managed` feature
async-trait = { version = "0.1.17", optional = true }
# `serde` feature
serde = { version = "1.0.103", features = ["derive"], optional = true }
# `rt_async-std_1` feature
async-std = { version = "1.0", features = ["unstable"], optional = true }
# The dependency of tokio::sync is non-optional. Deadpool depends on
# `tokio::sync::Semaphore`. No other features of `tokio` are enabled or used
# unless the `rt_tokio_1` feature is enabled.
tokio = { version = "1.0", features = ["sync"] }
[dev-dependencies]
async-std = { version = "1.0", features = ["attributes"] }
config = { version = "0.11", default-features = false }
criterion = "0.3"
tokio = { version = "1.5.0", features = ["macros", "rt", "rt-multi-thread", "time"] }
[[bench]]
name = "unmanaged"
harness = false
[workspace]
members = [
"diesel",
"lapin",
"postgres",
"redis",
"sqlite",
"examples/*"
]