[package]
edition = "2024"
rust-version = "1.85"
name = "http-file"
version = "0.3.0"
authors = ["fakeshadow <everestshadow@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "file serving for http crate type"
readme = "README.md"
keywords = [
"http",
"file",
]
license = "Apache-2.0"
repository = "https://github.com/HFQR/xitca-web"
resolver = "2"
[features]
default = ["tokio"]
tokio = [
"tokio/fs",
"tokio/io-util",
]
tokio-uring-xitca = [
"dep:tokio",
"dep:tokio-uring-xitca",
]
[lib]
name = "http_file"
path = "src/lib.rs"
[dependencies.bytes]
version = "1.11.1"
[dependencies.futures-core]
version = "0.3.32"
default-features = false
[dependencies.http]
version = "1.4.0"
[dependencies.http-range-header]
version = "0.4"
[dependencies.httpdate]
version = "1.0.2"
[dependencies.mime_guess]
version = "2.0.4"
[dependencies.percent-encoding]
version = "2.3.2"
[dependencies.pin-project-lite]
version = "0.2.17"
[dependencies.tokio]
version = "1.51.0"
features = ["rt"]
optional = true
[dependencies.tokio-uring-xitca]
version = "0.2.0"
features = [
"bytes",
"runtime-uring",
]
optional = true
[dev-dependencies.futures]
version = "0.3"
default-features = false
[dev-dependencies.tempfile]
version = "3.2.0"
[dev-dependencies.tokio]
version = "1.51.0"
features = [
"macros",
"rt",
]
[lints.clippy]
await_holding_lock = "allow"
needless_return = "allow"
new_without_default = "allow"
[lints.rust]
unreachable_patterns = "allow"