[package] name = "hypers_middleware" version = "0.0.0" edition = "2021" readme = "README.md" description = "Middlewares support for hypers web framework" keywords = ["hyper", "async", "framework", "middleware", "web"] categories = ["network-programming", "asynchronous"] license = "Apache-2.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] default = [] cors = [] otel = [ "opentelemetry-semantic-conventions", "opentelemetry", "opentelemetry-http", ] compression = ["tokio-util", "async-compression"] full = ["compression", "cors", "otel"] [dependencies] hypers = { path = "../hypers", version = "^0.4"} tokio-util = { version = "0.7.9", features = ["io"], optional = true } async-compression = { version = "0.4.4", features = [ "tokio", "gzip", "brotli", "deflate", ], optional = true } opentelemetry-semantic-conventions = { version = "0.12", optional = true } opentelemetry = { version = "0.20", features = ["metrics"], optional = true } opentelemetry-http = { version = "0.9", optional = true } [dev-dependencies] hypers_middleware = { path = ".", features = ["full"] } hypers = { path = "../hypers", version = "^0.4",features = ["static_file"]}