Files
hyper/Cargo.toml
David Barsky 9832aef9ee feat(lib): Move from log to tracing in a backwards-compatible way (#2204)
I've moved Hyper from `log` to `tracing`. Existing `log`-based users shouldn't notice a difference, but `tracing` users will see higher performance when filtering data. This isn't the _end_  of the `tracing` integration that can happen in `Hyper` (e.g., Hyper can start using spans, typed fields, etc.), but _something_ is better than nothing. I'd rather address those points, including examples, in followups.

I've attached a screenshot of the `hello` example working, but the logged information is pulled from `tracing`, not `log`.

<img width="514" alt="Screen Shot 2020-05-16 at 1 23 19 PM" src="https://user-images.githubusercontent.com/2067774/82126298-d8103800-9779-11ea-8f0b-57c632c684d6.png">
2020-07-06 18:30:41 -07:00

213 lines
4.1 KiB
TOML

[package]
name = "hyper"
version = "0.13.6" # don't forget to update html_root_url
description = "A fast and correct HTTP library."
readme = "README.md"
homepage = "https://hyper.rs"
documentation = "https://docs.rs/hyper"
repository = "https://github.com/hyperium/hyper"
license = "MIT"
authors = ["Sean McArthur <sean@seanmonstar.com>"]
keywords = ["http", "hyper", "hyperium"]
categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"]
edition = "2018"
include = [
"Cargo.toml",
"LICENSE",
"src/**/*",
#"build.rs",
]
[dependencies]
bytes = "0.5"
futures-core = { version = "0.3", default-features = false }
futures-channel = "0.3"
futures-util = { version = "0.3", default-features = false }
http = "0.2"
http-body = "0.3.1"
httparse = "1.0"
h2 = "0.2.2"
itoa = "0.4.1"
tracing = { version = "0.1", default-features = false, features = ["log", "std"] }
pin-project = "0.4.20"
time = "0.1"
tower-service = "0.3"
tokio = { version = "0.2.5", features = ["sync"] }
want = "0.3"
# Optional
socket2 = { version = "0.3", optional = true }
[dev-dependencies]
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
matches = "0.1"
num_cpus = "1.0"
pretty_env_logger = "0.4"
spmc = "0.3"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
tokio = { version = "0.2.2", features = ["fs", "macros", "io-std", "rt-util", "sync", "time", "test-util"] }
tokio-test = "0.2"
tokio-util = { version = "0.3", features = ["codec"] }
tower-util = "0.3"
url = "1.0"
[features]
default = [
"runtime",
"stream"
]
runtime = [
"tcp",
"tokio/rt-core",
]
tcp = [
"socket2",
"tokio/blocking",
"tokio/tcp",
"tokio/time",
]
# `impl Stream` for things
stream = []
# internal features used in CI
nightly = []
__internal_happy_eyeballs_tests = []
[package.metadata.docs.rs]
features = [
"runtime",
"stream",
]
[profile.release]
codegen-units = 1
incremental = false
[profile.bench]
codegen-units = 1
incremental = false
[[example]]
name = "client"
path = "examples/client.rs"
required-features = ["runtime"]
[[example]]
name = "client_json"
path = "examples/client_json.rs"
required-features = ["runtime"]
[[example]]
name = "echo"
path = "examples/echo.rs"
required-features = ["runtime", "stream"]
[[example]]
name = "gateway"
path = "examples/gateway.rs"
required-features = ["runtime"]
[[example]]
name = "hello"
path = "examples/hello.rs"
required-features = ["runtime"]
[[example]]
name = "http_proxy"
path = "examples/http_proxy.rs"
required-features = ["runtime"]
[[example]]
name = "multi_server"
path = "examples/multi_server.rs"
required-features = ["runtime"]
[[example]]
name = "params"
path = "examples/params.rs"
required-features = ["runtime", "stream"]
[[example]]
name = "send_file"
path = "examples/send_file.rs"
required-features = ["runtime"]
[[example]]
name = "single_threaded"
path = "examples/single_threaded.rs"
required-features = ["runtime"]
[[example]]
name = "state"
path = "examples/state.rs"
required-features = ["runtime"]
[[example]]
name = "tower_client"
path = "examples/tower_client.rs"
required-features = ["runtime"]
[[example]]
name = "tower_server"
path = "examples/tower_server.rs"
required-features = ["runtime"]
[[example]]
name = "upgrades"
path = "examples/upgrades.rs"
required-features = ["runtime"]
[[example]]
name = "web_api"
path = "examples/web_api.rs"
required-features = ["runtime", "stream"]
[[bench]]
name = "body"
path = "benches/body.rs"
required-features = ["runtime", "stream"]
[[bench]]
name = "connect"
path = "benches/connect.rs"
required-features = ["runtime"]
[[bench]]
name = "end_to_end"
path = "benches/end_to_end.rs"
required-features = ["runtime"]
[[bench]]
name = "pipeline"
path = "benches/pipeline.rs"
required-features = ["runtime"]
[[bench]]
name = "server"
path = "benches/server.rs"
required-features = ["runtime", "stream"]
[[test]]
name = "client"
path = "tests/client.rs"
required-features = ["runtime", "stream"]
[[test]]
name = "integration"
path = "tests/integration.rs"
required-features = ["runtime", "stream"]
[[test]]
name = "server"
path = "tests/server.rs"
required-features = ["runtime"]