277 lines
4.7 KiB
TOML
277 lines
4.7 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2021"
|
|
rust-version = "1.83"
|
|
name = "axum-test"
|
|
version = "17.3.0"
|
|
authors = ["Joseph Lenton <josephlenton@gmail.com>"]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "For spinning up and testing Axum servers"
|
|
documentation = "https://docs.rs/axum-test"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"testing",
|
|
"test",
|
|
"axum",
|
|
]
|
|
categories = [
|
|
"web-programming::http-server",
|
|
"development-tools::testing",
|
|
]
|
|
license = "MIT"
|
|
repository = "https://github.com/JosephLenton/axum-test"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = [
|
|
"--cfg",
|
|
"docsrs",
|
|
]
|
|
|
|
[lib]
|
|
name = "axum_test"
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "example-shuttle"
|
|
path = "examples/example-shuttle/main.rs"
|
|
required-features = ["shuttle"]
|
|
|
|
[[example]]
|
|
name = "example-todo"
|
|
path = "examples/example-todo/main.rs"
|
|
|
|
[[example]]
|
|
name = "example-websocket-chat"
|
|
path = "examples/example-websocket-chat/main.rs"
|
|
required-features = ["ws"]
|
|
|
|
[[example]]
|
|
name = "example-websocket-ping-pong"
|
|
path = "examples/example-websocket-ping-pong/main.rs"
|
|
required-features = ["ws"]
|
|
|
|
[dependencies.anyhow]
|
|
version = "1.0"
|
|
|
|
[dependencies.assert-json-diff]
|
|
version = "2.0"
|
|
|
|
[dependencies.auto-future]
|
|
version = "1.0"
|
|
|
|
[dependencies.axum]
|
|
version = "0.8.3"
|
|
features = []
|
|
|
|
[dependencies.axum-extra]
|
|
version = "0.10"
|
|
features = ["typed-routing"]
|
|
optional = true
|
|
|
|
[dependencies.base64]
|
|
version = "0.22"
|
|
optional = true
|
|
|
|
[dependencies.bytes]
|
|
version = "1.10"
|
|
|
|
[dependencies.bytesize]
|
|
version = "2.0"
|
|
|
|
[dependencies.cookie]
|
|
version = "0.18"
|
|
|
|
[dependencies.futures-util]
|
|
version = "0.3"
|
|
optional = true
|
|
|
|
[dependencies.http]
|
|
version = "1.3"
|
|
|
|
[dependencies.http-body-util]
|
|
version = "0.1"
|
|
|
|
[dependencies.hyper]
|
|
version = "1.6"
|
|
features = ["http1"]
|
|
|
|
[dependencies.hyper-util]
|
|
version = "0.1"
|
|
features = [
|
|
"client",
|
|
"http1",
|
|
"client-legacy",
|
|
]
|
|
|
|
[dependencies.mime]
|
|
version = "0.3"
|
|
|
|
[dependencies.pretty_assertions]
|
|
version = "1.4"
|
|
optional = true
|
|
|
|
[dependencies.reqwest]
|
|
version = "0.12"
|
|
features = [
|
|
"cookies",
|
|
"json",
|
|
"stream",
|
|
"multipart",
|
|
"rustls-tls",
|
|
]
|
|
optional = true
|
|
|
|
[dependencies.reserve-port]
|
|
version = "2.2"
|
|
|
|
[dependencies.rmp-serde]
|
|
version = "1.3"
|
|
optional = true
|
|
|
|
[dependencies.rust-multipart-rfc7578_2]
|
|
version = "0.8"
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
|
|
[dependencies.serde_json]
|
|
version = "1.0"
|
|
|
|
[dependencies.serde_urlencoded]
|
|
version = "0.7"
|
|
|
|
[dependencies.serde_yaml]
|
|
version = "0.9"
|
|
optional = true
|
|
|
|
[dependencies.shuttle-axum]
|
|
version = "0.53"
|
|
optional = true
|
|
|
|
[dependencies.smallvec]
|
|
version = "1.13"
|
|
|
|
[dependencies.tokio]
|
|
version = "1.43"
|
|
features = ["rt"]
|
|
|
|
[dependencies.tokio-tungstenite]
|
|
version = "0.26"
|
|
optional = true
|
|
|
|
[dependencies.tower]
|
|
version = "0.5"
|
|
features = [
|
|
"util",
|
|
"make",
|
|
]
|
|
|
|
[dependencies.url]
|
|
version = "2.5"
|
|
|
|
[dependencies.uuid]
|
|
version = "1.12"
|
|
features = ["v4"]
|
|
optional = true
|
|
|
|
[dev-dependencies.axum]
|
|
version = "0.8"
|
|
features = [
|
|
"multipart",
|
|
"tokio",
|
|
"ws",
|
|
]
|
|
|
|
[dev-dependencies.axum-extra]
|
|
version = "0.10"
|
|
features = [
|
|
"cookie",
|
|
"typed-routing",
|
|
"query",
|
|
]
|
|
|
|
[dev-dependencies.axum-msgpack]
|
|
version = "0.5"
|
|
|
|
[dev-dependencies.axum-yaml]
|
|
version = "0.5"
|
|
|
|
[dev-dependencies.futures-util]
|
|
version = "0.3"
|
|
|
|
[dev-dependencies.local-ip-address]
|
|
version = "0.6"
|
|
|
|
[dev-dependencies.rand]
|
|
version = "0.9"
|
|
features = ["small_rng"]
|
|
|
|
[dev-dependencies.regex]
|
|
version = "1.11"
|
|
|
|
[dev-dependencies.serde-email]
|
|
version = "3.1"
|
|
features = ["serde"]
|
|
|
|
[dev-dependencies.shuttle-axum]
|
|
version = "0.53"
|
|
|
|
[dev-dependencies.shuttle-runtime]
|
|
version = "0.53"
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1.43"
|
|
features = [
|
|
"rt",
|
|
"rt-multi-thread",
|
|
"sync",
|
|
"time",
|
|
"macros",
|
|
]
|
|
|
|
[dev-dependencies.tower-http]
|
|
version = "0.6"
|
|
features = ["normalize-path"]
|
|
|
|
[features]
|
|
all = [
|
|
"pretty-assertions",
|
|
"yaml",
|
|
"msgpack",
|
|
"reqwest",
|
|
"shuttle",
|
|
"typed-routing",
|
|
"ws",
|
|
]
|
|
default = ["pretty-assertions"]
|
|
msgpack = ["dep:rmp-serde"]
|
|
pretty-assertions = ["dep:pretty_assertions"]
|
|
reqwest = ["dep:reqwest"]
|
|
shuttle = ["dep:shuttle-axum"]
|
|
typed-routing = ["dep:axum-extra"]
|
|
ws = [
|
|
"axum/ws",
|
|
"tokio/time",
|
|
"dep:uuid",
|
|
"dep:base64",
|
|
"dep:tokio-tungstenite",
|
|
"dep:futures-util",
|
|
]
|
|
yaml = ["dep:serde_yaml"]
|