Skip to content

Commit

Permalink
Prepare tokio-util.
Browse files Browse the repository at this point in the history
Signed-off-by: Tricster <[email protected]>
  • Loading branch information
MediosZ committed Oct 1, 2022
1 parent ede6bb9 commit ad8a56a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

members = [
"tokio",
"tokio-util",
]
exclude = [
"tokio-macros",
"tokio-test",
"tokio-stream",
"tokio-util",

# Internal
"benches",
Expand Down
36 changes: 20 additions & 16 deletions tokio-util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "tokio-util"
name = "tokio-util_wasi"
# When releasing to crates.io:
# - Remove path dependencies
# - Update CHANGELOG.md.
Expand All @@ -9,32 +9,36 @@ edition = "2018"
rust-version = "1.49"
authors = ["Tokio Contributors <[email protected]>"]
license = "MIT"
repository = "https://github.com/tokio-rs/tokio"
homepage = "https://tokio.rs"
repository = "https://github.com/WasmEdge/tokio"
homepage = "https://github.com/WasmEdge/tokio"
description = """
Additional utilities for working with Tokio.
"""
categories = ["asynchronous"]

[lib]
name = "tokio_util"
path = "src/lib.rs"

[features]
# No features on by default
default = []

# Shorthand for enabling everything
full = ["codec", "compat", "io-util", "time", "net", "rt"]

net = ["tokio/net"]
net = ["tokio_wasi/net"]
compat = ["futures-io",]
codec = ["tracing"]
time = ["tokio/time","slab"]
time = ["tokio_wasi/time","slab"]
io = []
io-util = ["io", "tokio/rt", "tokio/io-util"]
rt = ["tokio/rt", "tokio/sync", "futures-util", "hashbrown"]
io-util = ["io", "tokio_wasi/rt", "tokio_wasi/io-util"]
rt = ["tokio_wasi/rt", "tokio_wasi/sync", "futures-util", "hashbrown"]

__docs_rs = ["futures-util"]

[dependencies]
tokio = { version = "1.21.0", path = "../tokio", features = ["sync"] }
tokio_wasi = { version = "1.21", features = ["sync"] }
bytes = "1.0.0"
futures-core = "0.3.0"
futures-sink = "0.3.0"
Expand All @@ -47,15 +51,15 @@ tracing = { version = "0.1.25", default-features = false, features = ["std"], op
[target.'cfg(tokio_unstable)'.dependencies]
hashbrown = { version = "0.12.0", optional = true }

[dev-dependencies]
tokio = { version = "1.0.0", path = "../tokio", features = ["full"] }
tokio-test = { version = "0.4.0", path = "../tokio-test" }
tokio-stream = { version = "0.1", path = "../tokio-stream" }
# [dev-dependencies]
# tokio = { version = "1.0.0", path = "../tokio", features = ["full"] }
# tokio-test = { version = "0.4.0", path = "../tokio-test" }
# tokio-stream = { version = "0.1", path = "../tokio-stream" }

async-stream = "0.3.0"
futures = "0.3.0"
futures-test = "0.3.5"
parking_lot = "0.12.0"
# async-stream = "0.3.0"
# futures = "0.3.0"
# futures-test = "0.3.5"
# parking_lot = "0.12.0"

[package.metadata.docs.rs]
all-features = true
Expand Down

0 comments on commit ad8a56a

Please sign in to comment.