This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
forked from JosephLenton/axum-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
82 lines (72 loc) · 2.72 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[package]
name = "axum-test"
authors = ["Joseph Lenton <[email protected]>"]
version = "15.6.0"
rust-version = "1.75"
edition = "2021"
license = "MIT"
description = "For spinning up and testing Axum servers"
keywords = ["testing", "test", "axum"]
categories = ["web-programming::http-server", "development-tools::testing"]
repository = "https://github.com/JosephLenton/axum-test"
documentation = "https://docs.rs/axum-test"
readme = "README.md"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["pretty-assertions"]
all = ["pretty-assertions", "yaml", "msgpack", "shuttle", "typed-routing", "ws"]
pretty-assertions = ["dep:pretty_assertions"]
yaml = ["dep:serde_yaml"]
msgpack = ["dep:rmp-serde"]
shuttle = ["dep:shuttle-axum"]
typed-routing = ["dep:axum-extra"]
ws = ["axum/ws", "dep:uuid", "dep:base64", "dep:tokio-tungstenite", "dep:futures-util"]
[dependencies]
auto-future = "1.0"
axum = { git = "https://github.com/grafbase/axum", features = ["tokio"], branch = "axum-tungstenite-upgrade" }
anyhow = "1.0"
bytes = "1.7"
cookie = "0.18"
http = "1.1"
http-body-util = "0.1"
hyper-util = { version = "0.1", features = ["client", "http1", "client-legacy"] }
hyper = { version = "1.4", features = ["http1"] }
mime = "0.3"
rust-multipart-rfc7578_2 = "0.6"
pretty_assertions = { version = "1.4", optional = true }
reserve-port = "2.0"
serde = { version = "1.0" }
serde_json = "1.0"
serde_urlencoded = "0.7"
smallvec = "1.13"
tokio = { version = "1.39", features = ["rt", "time"] }
tower = { version = "0.5", features = ["util", "make"] }
url = "2.5"
# Yaml
serde_yaml = { version = "0.9", optional = true }
# Shuttle
shuttle-axum = { version = "0.47", optional = true }
# MsgPack
rmp-serde = { version = "1.3", optional = true }
# Typed Routing
axum-extra = { git = "https://github.com/grafbase/axum", features = ["typed-routing"], optional = true, branch = "axum-tungstenite-upgrade" }
# WebSockets
uuid = { version = "1.10", optional = true, features = ["v4"]}
base64 = { version = "0.22", optional = true }
futures-util = { version = "0.3", optional = true }
tokio-tungstenite = { version = "0.23", optional = true }
[dev-dependencies]
async-trait = "0.1"
axum = { git = "https://github.com/grafbase/axum", features = ["multipart", "tokio", "ws"], branch = "axum-tungstenite-upgrade" }
axum-extra = { git = "https://github.com/grafbase/axum", features = ["cookie", "typed-routing", "query"], branch = "axum-tungstenite-upgrade" }
axum-msgpack = "0.4"
axum-yaml = "0.4"
futures-util = "0.3"
local-ip-address = "0.6"
regex = "1.10"
serde-email = { version = "3.0", features = ["serde"] }
shuttle-axum = "0.47"
shuttle-runtime = "0.47"
tokio = { version = "1.39", features = ["rt", "rt-multi-thread", "time", "macros"] }