-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathCargo.toml
107 lines (91 loc) · 3.17 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[package]
name = "axum-test"
authors = ["Joseph Lenton <[email protected]>"]
version = "17.1.0"
rust-version = "1.78"
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"]
[[example]]
name = "example-shuttle"
path = "examples/example-shuttle/main.rs"
required-features = ["shuttle"]
[[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"]
[features]
default = ["pretty-assertions"]
all = ["pretty-assertions", "yaml", "msgpack", "reqwest", "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", "tokio/time", "dep:uuid", "dep:base64", "dep:tokio-tungstenite", "dep:futures-util"]
reqwest = ["dep:reqwest"]
[dependencies]
auto-future = "1.0"
assert-json-diff = "2.0"
axum = { version = "0.8.1", features = [] }
anyhow = "1.0"
bytes = "1.8"
bytesize = "1.3.0"
cookie = "0.18"
http = "1.2"
http-body-util = "0.1"
hyper-util = { version = "0.1", features = ["client", "http1", "client-legacy"] }
hyper = { version = "1.5", features = ["http1"] }
mime = "0.3"
rust-multipart-rfc7578_2 = "0.6"
reserve-port = "2.0"
serde = { version = "1.0" }
serde_json = "1.0"
serde_urlencoded = "0.7"
smallvec = "1.13"
tokio = { version = "1.43", features = ["rt"] }
tower = { version = "0.5", features = ["util", "make"] }
url = "2.5"
# Pretty Assertions
pretty_assertions = { version = "1.4", optional = true }
# Yaml
serde_yaml = { version = "0.9", optional = true }
# Shuttle
shuttle-axum = { version = "0.51", optional = true }
# MsgPack
rmp-serde = { version = "1.3", optional = true }
# Typed Routing
axum-extra = { version = "0.10", features = ["typed-routing"], optional = true }
# WebSockets
uuid = { version = "1.12", optional = true, features = ["v4"]}
base64 = { version = "0.22", optional = true }
futures-util = { version = "0.3", optional = true }
tokio-tungstenite = { version = "0.26", optional = true }
# Reqwest
reqwest = { version = "0.12", optional = true, features = ["cookies", "json", "stream", "multipart", "rustls-tls"] }
[dev-dependencies]
axum = { version = "0.8", features = ["multipart", "tokio", "ws"] }
axum-extra = { version = "0.10", features = ["cookie", "typed-routing", "query"] }
axum-msgpack = "0.5"
axum-yaml = "0.5"
futures-util = "0.3"
local-ip-address = "0.6"
rand = { version = "0.8", features = ["small_rng"] }
regex = "1.11"
serde-email = { version = "3.1", features = ["serde"] }
shuttle-axum = "0.51"
shuttle-runtime = "0.51"
tokio = { version = "1.41", features = ["rt", "rt-multi-thread", "sync", "time", "macros"] }
tower-http = { version = "0.6", features = ["normalize-path"] }