forked from bikeshedder/deadpool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
68 lines (61 loc) · 1.6 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
56
57
58
59
60
61
62
63
64
65
66
67
68
[package]
name = "deadpool"
version = "0.10.0"
edition = "2021"
rust-version = "1.75"
authors = ["Michael P. Jung <[email protected]>"]
description = "Dead simple async pool"
keywords = ["async", "database", "pool"]
license = "MIT OR 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 = []
unmanaged = []
rt_tokio_1 = ["deadpool-runtime/tokio_1"]
rt_async-std_1 = ["deadpool-runtime/async-std_1"]
[dependencies]
num_cpus = "1.11.1"
# `serde` feature
serde = { version = "1.0.103", features = ["derive"], optional = true }
# `rt_async-std_1` feature
deadpool-runtime = { version = "0.1", path = "./runtime" }
# 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"] }
console = "0.15.7"
[dev-dependencies]
async-std = { version = "1.0", features = ["attributes"] }
config = { version = "0.14", features = ["json"] }
criterion = { version = "0.5", features = ["html_reports", "async_tokio"] }
itertools = "0.12"
tokio = { version = "1.5.0", features = [
"macros",
"rt",
"rt-multi-thread",
"time",
] }
[[bench]]
name = "managed"
harness = false
[[bench]]
name = "unmanaged"
harness = false
[workspace]
members = [
"diesel",
"lapin",
"memcached",
"postgres",
"r2d2",
"redis",
"runtime",
"sqlite",
"sync",
"examples/*",
]