mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-29 15:49:16 +01:00
6a042a9b3a
* Feature-gate test that depends on non-default features Makes `cargo check` work without extra flags. * Don't set doc(html_root_url) It is no longer recommended: https://github.com/rust-lang/api-guidelines/pull/230 * Remove documentation URL from Cargo.toml crates.io will link to the right version on docs.rs automatically. * Ensure toolchains installed by actions-rs/toolchain are actually used * Fix missing rustup component in check job * Raise MSRV to 1.51 Older versions weren't actually working before. * Only run clippy & rustfmt on stable toolchain MSRV is checked in test-versions. * Allow cargo doc to succeed without headers and multipart features CI will still ensure that intra-doc links that rely on these are not broken.
105 lines
2.6 KiB
TOML
105 lines
2.6 KiB
TOML
[package]
|
|
authors = ["David Pedersen <david.pdrsn@gmail.com>"]
|
|
categories = ["asynchronous", "network-programming", "web-programming"]
|
|
description = "Web framework that focuses on ergonomics and modularity"
|
|
edition = "2018"
|
|
homepage = "https://github.com/tokio-rs/axum"
|
|
keywords = ["http", "web", "framework"]
|
|
license = "MIT"
|
|
name = "axum"
|
|
readme = "README.md"
|
|
repository = "https://github.com/tokio-rs/axum"
|
|
version = "0.1.3"
|
|
|
|
[features]
|
|
default = []
|
|
ws = ["tokio-tungstenite", "sha-1", "base64"]
|
|
multipart = ["multer", "mime"]
|
|
|
|
[dependencies]
|
|
async-trait = "0.1"
|
|
bytes = "1.0"
|
|
futures-util = "0.3"
|
|
http = "0.2"
|
|
http-body = "0.4.2"
|
|
hyper = { version = "0.14", features = ["server", "tcp", "http1", "stream"] }
|
|
pin-project-lite = "0.2.7"
|
|
regex = "1.5"
|
|
serde = "1.0"
|
|
serde_json = "1.0"
|
|
serde_urlencoded = "0.7"
|
|
tokio = { version = "1", features = ["time"] }
|
|
tokio-util = "0.6"
|
|
tower = { version = "0.4", features = ["util", "buffer", "make"] }
|
|
tower-http = { version = "0.1", features = ["add-extension", "map-response-body"] }
|
|
|
|
# optional dependencies
|
|
tokio-tungstenite = { optional = true, version = "0.14" }
|
|
sha-1 = { optional = true, version = "0.9.6" }
|
|
base64 = { optional = true, version = "0.13" }
|
|
headers = { optional = true, version = "0.3" }
|
|
multer = { optional = true, version = "2.0.0" }
|
|
mime = { optional = true, version = "0.3" }
|
|
|
|
[dev-dependencies]
|
|
askama = "0.10.5"
|
|
bb8 = "0.7.0"
|
|
bb8-postgres = "0.7.0"
|
|
futures = "0.3"
|
|
hyper = { version = "0.14", features = ["full"] }
|
|
reqwest = { version = "0.11", features = ["json", "stream"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
tokio = { version = "1.6.1", features = ["macros", "rt", "rt-multi-thread", "net"] }
|
|
tokio-rustls = "0.22.0"
|
|
tokio-postgres = "0.7.2"
|
|
tracing = "0.1"
|
|
tracing-subscriber = "0.2"
|
|
uuid = { version = "0.8", features = ["serde", "v4"] }
|
|
async-session = "3.0.0"
|
|
tokio-stream = "0.1.7"
|
|
|
|
# for async-graphql example
|
|
async-graphql = "2.9.9"
|
|
slab = "0.4.3"
|
|
|
|
[dev-dependencies.tower]
|
|
version = "0.4"
|
|
features = [
|
|
"util",
|
|
"timeout",
|
|
"limit",
|
|
"load-shed",
|
|
"steer",
|
|
"filter",
|
|
]
|
|
|
|
[dev-dependencies.tower-http]
|
|
version = "0.1"
|
|
features = ["full"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[package.metadata.playground]
|
|
features = ["ws", "multipart", "headers"]
|
|
|
|
[[example]]
|
|
name = "chat"
|
|
required-features = ["ws"]
|
|
|
|
[[example]]
|
|
name = "multipart_form"
|
|
required-features = ["multipart"]
|
|
|
|
[[example]]
|
|
name = "sse"
|
|
required-features = ["headers"]
|
|
|
|
[[example]]
|
|
name = "websocket"
|
|
required-features = ["ws", "headers"]
|
|
|
|
[[example]]
|
|
name = "async-graphql"
|
|
required-features = ["headers"]
|