forked from tokio-rs/tokio-metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
50 lines (44 loc) · 1.35 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
[package]
name = "tokio-metrics"
version = "0.2.0"
edition = "2021"
rust-version = "1.56.0"
authors = ["Tokio Contributors <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/tokio-rs/tokio-metrics"
homepage = "https://tokio.rs"
description = """
Runtime and task level metrics for Tokio applications.
"""
categories = ["asynchronous", "network-programming"]
keywords = ["async", "futures", "metrics", "debugging"]
[features]
default = ["rt"]
rt = ["tokio"]
[dependencies]
tokio-stream = "0.1.11"
futures-util = "0.3.19"
pin-project-lite = "0.2.7"
tokio = { version = "1.26.0", features = ["rt", "stats", "time", "net"], optional = true }
[dev-dependencies]
axum = "0.6"
criterion = "0.3.4"
futures = "0.3.21"
num_cpus = "1.13.1"
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
tokio = { version = "1.26.0", features = ["full", "rt", "time", "macros", "test-util"] }
[[example]]
name = "runtime"
required-features = ["rt"]
[[bench]]
name = "poll_overhead"
harness = false
[package.metadata.docs.rs]
all-features = true
# enable unstable features in the documentation
rustdoc-args = ["--cfg", "docsrs", "--cfg", "tokio_unstable"]
# it's necessary to _also_ pass `--cfg tokio_unstable` to rustc, or else
# dependencies will not be enabled, and the docs build will fail.
rustc-args = ["--cfg", "tokio_unstable"]