mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-16 00:00:12 +02:00
This change adds an extension trait to `BufStream` and puts the core trait behind a feature flag for optional use. This mainly adds the additional functions in an extension trait to allow the user to select if they want just the core trait or the fully featured version. Now the user can add the core feature to _not_ include the extension trait. By deafult, this feature is disabled.
27 lines
613 B
TOML
27 lines
613 B
TOML
[package]
|
|
name = "tokio-buf"
|
|
|
|
# When releasing to crates.io:
|
|
# - Update html_root_url.
|
|
# - Update CHANGELOG.md.
|
|
# - Create "v0.1.x" git tag.
|
|
version = "0.1.0"
|
|
authors = ["Carl Lerche <[email protected]>"]
|
|
license = "MIT"
|
|
repository = "https://github.com/tokio-rs/tokio"
|
|
homepage = "https://tokio.rs"
|
|
documentation = "https://docs.rs/tokio-buf/0.1.0"
|
|
description = """
|
|
Asynchronous stream of byte buffers
|
|
"""
|
|
categories = ["asynchronous"]
|
|
|
|
[dependencies]
|
|
bytes = { version = "0.4.10" }
|
|
either = { version = "1.5", optional = true}
|
|
futures = "0.1.23"
|
|
|
|
[features]
|
|
default = ["ext"]
|
|
ext = ["bytes/either", "either"]
|