[dependencies.base64]
optional = true
version = "0.22"
[dependencies.etag]
features = ["std"]
optional = true
version = "4"
[dependencies.futures-util]
default-features = false
optional = true
version = "0.3"
[dependencies.http-body-util]
optional = true
version = "0.1"
[dependencies.hyper]
features = ["full", "server", "http1", "http2", "client"]
optional = true
version = "1"
[dependencies.pin-project]
optional = true
version = "1"
[dependencies.salvo_core]
default-features = false
version = "0.88.1"
[dependencies.serde]
features = ["derive"]
optional = true
version = "1"
[dependencies.serde_json]
optional = true
version = "1"
[dependencies.tokio]
optional = true
version = "1"
[dependencies.tokio-tungstenite]
default-features = false
optional = true
version = "0.28"
[dependencies.tokio-util]
features = ["io"]
optional = true
version = "0.7"
[dependencies.tower]
default-features = false
features = ["buffer", "util"]
optional = true
version = "0.5"
[dependencies.tracing]
optional = true
version = "0.1"
[dependencies.ulid]
default-features = false
features = ["std"]
optional = true
version = "1"
[dev-dependencies.http-body-util]
version = "0.1"
[dev-dependencies.salvo_core]
default-features = false
features = ["http1", "server", "test", "rustls"]
version = "0.88.1"
[dev-dependencies.time]
version = "0.3"
[dev-dependencies.tokio-stream]
default-features = false
version = "0.1"
[dev-dependencies.tower]
default-features = false
features = ["limit"]
version = "0.5"
[dev-dependencies.tracing-test]
version = "0.2.1"
[features]
affix-state = []
basic-auth = ["dep:base64"]
caching-headers = ["dep:etag", "dep:tracing"]
catch-panic = ["dep:futures-util", "dep:tracing"]
concurrency-limiter = ["dep:tracing", "tokio"]
default = ["full"]
force-https = ["dep:tracing"]
full = ["affix-state", "basic-auth", "caching-headers", "catch-panic", "force-https", "logging", "sse", "concurrency-limiter", "size-limiter", "trailing-slash", "timeout", "websocket", "request-id", "tower-compat"]
logging = ["dep:tracing"]
request-id = ["dep:ulid", "dep:tracing"]
size-limiter = []
sse = ["dep:futures-util", "dep:pin-project", "tokio", "dep:serde", "dep:serde_json", "dep:tracing"]
timeout = ["tokio/macros"]
tower-compat = ["dep:futures-util", "dep:http-body-util", "dep:tower", "dep:tracing"]
trailing-slash = ["dep:tracing"]
websocket = ["dep:futures-util", "dep:hyper", "tokio", "tokio-tungstenite", "dep:tracing"]
[lib]
name = "salvo_extra"
path = "src/lib.rs"
[lints.clippy]
await_holding_lock = "warn"
dbg_macro = "warn"
empty_enum = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
exit = "warn"
filter_map_next = "warn"
fn_params_excessive_bools = "warn"
future_not_send = "warn"
if_let_mutex = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
inefficient_to_string = "warn"
linkedlist = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_let_else = "warn"
mem_forget = "warn"
must_use_candidate = "warn"
needless_borrow = "warn"
needless_continue = "warn"
needless_pass_by_ref_mut = "warn"
option_option = "warn"
redundant_clone = "warn"
ref_option = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_self_not_must_use = "warn"
single_match_else = "warn"
str_to_string = "warn"
suboptimal_flops = "warn"
todo = "warn"
trivially_copy_pass_by_ref = "warn"
type_complexity = "allow"
uninlined_format_args = "warn"
unnested_or_patterns = "warn"
unused_self = "warn"
unwrap_used = "warn"
use_self = "warn"
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "deny"
unsafe_code = "forbid"
[lints.rustdoc]
broken_intra_doc_links = "warn"
[package]
authors = ["chrislearn <chris@acroidea.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["web-programming::http-server", "web-programming::websocket", "network-programming", "asynchronous"]
description = """
Salvo is a powerful web framework that can make your work easier.
"""
edition = "2024"
homepage = "https://salvo.rs"
keywords = ["http", "async", "web", "framework", "server"]
license = "MIT OR Apache-2.0"
name = "salvo_extra"
readme = "README.md"
repository = "https://github.com/salvo-rs/salvo"
rust-version = "1.89"
version = "0.88.1"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]