Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
122 lines (102 loc) · 3.56 KB
/
Copy pathCargo.toml
File metadata and controls
122 lines (102 loc) · 3.56 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[package]
name = "axum-test"
authors = ["Joseph Lenton <josephlenton@gmail.com>"]
version = "21.1.0"
rust-version = "1.89"
edition = "2024"
license = "MIT"
description = "Easy E2E testing for Axum"
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 = "actix-web-todo"
path = "examples/actix-web-todo/main.rs"
required-features = ["actix-web"]
[[example]]
name = "actix-web-websocket-ping-pong"
path = "examples/actix-web-websocket-ping-pong/main.rs"
required-features = ["actix-web", "ws"]
[[example]]
name = "snapshots"
path = "examples/snapshots/main.rs"
[[example]]
name = "todo"
path = "examples/todo/main.rs"
[[example]]
name = "websocket-chat"
path = "examples/websocket-chat/main.rs"
required-features = ["ws"]
[[example]]
name = "websocket-ping-pong"
path = "examples/websocket-ping-pong/main.rs"
required-features = ["ws"]
[features]
default = ["pretty-assertions"]
all = ["pretty-assertions", "yaml", "msgpack", "reqwest", "typed-routing", "ws", "actix-web"]
actix-web = ["dep:actix-web"]
pretty-assertions = ["dep:pretty_assertions"]
yaml = ["dep:serde_yaml"]
msgpack = ["dep:rmp-serde"]
reqwest = ["dep:reqwest"]
typed-routing = ["dep:axum-extra"]
ws = ["axum/ws", "tokio/time", "dep:uuid", "dep:base64", "dep:tokio-tungstenite", "dep:futures-util"]
[dependencies]
axum = { version = "0.8.9", features = [] }
anyhow = "1.0.104"
bytes = "1.12.0"
bytesize = "2.4.0"
cookie = "0.18.2"
educe = { version = "0.7.6", default-features = false, features = ["Clone", "PartialEq"] }
expect-json = "1.11.0"
http = "1.5.0"
http-body-util = "0.1.5"
hyper-util = { version = "0.1.20", features = ["client", "http1", "client-legacy"] }
hyper = { version = "1.10.1", features = ["http1"] }
mime = "0.3.17"
rust-multipart-rfc7578_2 = "0.9.0"
reserve-port = "2.5.0"
serde = "1.0.229"
serde_json = "1.0.151"
serde_urlencoded = "0.7.1"
tokio = { version = "1.53.1", features = ["rt"] }
tower = { version = "0.5.3", features = ["util", "make"] }
url = "2.5.8"
# Pretty Assertions
pretty_assertions = { version = "1.4.1", optional = true }
# Yaml
serde_yaml = { version = "0.9.34", optional = true }
# MsgPack
rmp-serde = { version = "1.3.1", optional = true }
# Typed Routing
axum-extra = { version = "0.12.6", optional = true, features = ["routing", "typed-routing"] }
# WebSockets
uuid = { version = "1.24.1", optional = true, features = ["v4"]}
base64 = { version = "0.23.1", optional = true }
futures-util = { version = "0.3.34", optional = true }
tokio-tungstenite = { version = "0.30.0", optional = true }
# Reqwest
reqwest = { version = "0.13.4", optional = true, features = ["cookies", "json", "stream", "multipart"] }
# Actix Web
actix-web = { version = "4.14.1", optional = true }
# Old Json Diff
assert-json-diff = { version = "2.0.2", optional = true }
[dev-dependencies]
axum = { version = "0.8.9", features = ["multipart", "tokio", "ws"] }
axum-extra = { version = "0.12.6", features = ["cookie", "typed-routing", "query"] }
axum-msgpack = "0.5.0"
axum-yaml = "0.5.0"
futures = "0.3.34"
futures-util = "0.3.32"
insta = { version = "1.48.0", features = ["json"] }
rand = "0.10.2"
regex = "1.12.4"
actix-ws = "0.4.0"
serde-email = { version = "3.2.0", features = ["serde"] }
tokio = { version = "1.52.3", features = ["rt", "rt-multi-thread", "sync", "time", "macros"] }
tower-http = { version = "0.7.0", features = ["normalize-path"] }