1 | [package] |
2 | name = "tokio-util" |
3 | # When releasing to crates.io: |
4 | # - Remove path dependencies |
5 | # - Update CHANGELOG.md. |
6 | # - Create "tokio-util-0.7.x" git tag. |
7 | version = "0.7.10" |
8 | edition = "2021" |
9 | rust-version = "1.56" |
10 | authors = ["Tokio Contributors <team@tokio.rs>" ] |
11 | license = "MIT" |
12 | repository = "https://github.com/tokio-rs/tokio" |
13 | homepage = "https://tokio.rs" |
14 | description = "" " |
15 | Additional utilities for working with Tokio. |
16 | " "" |
17 | categories = ["asynchronous" ] |
18 | |
19 | [features] |
20 | # No features on by default |
21 | default = [] |
22 | |
23 | # Shorthand for enabling everything |
24 | full = ["codec" , "compat" , "io-util" , "time" , "net" , "rt" ] |
25 | |
26 | net = ["tokio/net" ] |
27 | compat = ["futures-io" ,] |
28 | codec = ["tracing" ] |
29 | time = ["tokio/time" ,"slab" ] |
30 | io = [] |
31 | io-util = ["io" , "tokio/rt" , "tokio/io-util" ] |
32 | rt = ["tokio/rt" , "tokio/sync" , "futures-util" , "hashbrown" ] |
33 | |
34 | __docs_rs = ["futures-util" ] |
35 | |
36 | [dependencies] |
37 | tokio = { version = "1.28.0" , path = "../tokio" , features = ["sync" ] } |
38 | bytes = "1.0.0" |
39 | futures-core = "0.3.0" |
40 | futures-sink = "0.3.0" |
41 | futures-io = { version = "0.3.0" , optional = true } |
42 | futures-util = { version = "0.3.0" , optional = true } |
43 | pin-project-lite = "0.2.11" |
44 | slab = { version = "0.4.4" , optional = true } # Backs `DelayQueue` |
45 | tracing = { version = "0.1.25" , default-features = false, features = ["std" ], optional = true } |
46 | |
47 | [target.'cfg(tokio_unstable)'.dependencies] |
48 | hashbrown = { version = "0.14.0" , optional = true } |
49 | |
50 | [dev-dependencies] |
51 | tokio = { version = "1.0.0" , path = "../tokio" , features = ["full" ] } |
52 | tokio-test = { version = "0.4.0" , path = "../tokio-test" } |
53 | tokio-stream = { version = "0.1" , path = "../tokio-stream" } |
54 | |
55 | async-stream = "0.3.0" |
56 | futures = "0.3.0" |
57 | futures-test = "0.3.5" |
58 | parking_lot = "0.12.0" |
59 | tempfile = "3.1.0" |
60 | |
61 | [package.metadata.docs.rs] |
62 | all-features = true |
63 | # enable unstable features in the documentation |
64 | rustdoc-args = ["--cfg" , "docsrs" , "--cfg" , "tokio_unstable" ] |
65 | # it's necessary to _also_ pass `--cfg tokio_unstable` to rustc, or else |
66 | # dependencies will not be enabled, and the docs build will fail. |
67 | rustc-args = ["--cfg" , "docsrs" , "--cfg" , "tokio_unstable" ] |
68 | |