-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
118 lines (90 loc) · 2.94 KB
/
Cargo.toml
File metadata and controls
118 lines (90 loc) · 2.94 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
[package]
name = "rustapi-core"
description = "The core engine of the RustAPI framework. Provides the hyper-based HTTP server, router, extraction logic, and foundational traits."
documentation = "https://docs.rs/rustapi-core"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
[dependencies]
# Async
tokio = { workspace = true }
futures-util = { workspace = true }
pin-project-lite = { workspace = true }
# HTTP
hyper = { workspace = true }
hyper-util = { workspace = true }
http = { workspace = true }
http-body-util = { workspace = true }
bytes = { workspace = true }
# Socket options
socket2 = { version = "0.5", features = ["all"] }
# Router
matchit = { workspace = true }
# Serialization
serde = { workspace = true }
serde_json = { workspace = true }
serde_urlencoded = "0.7"
simd-json = { version = "0.17", optional = true }
# Stack-allocated collections for performance
smallvec = "1.13"
# Middleware
tower = { workspace = true }
tower-service = { workspace = true }
tower-http = { workspace = true }
# Utilities
thiserror = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
inventory = { workspace = true }
linkme = { workspace = true }
uuid = { workspace = true }
base64 = "0.22"
# Compression (optional)
flate2 = { version = "1.0", optional = true }
brotli = { version = "6.0", optional = true }
# Cookies (optional)
cookie = { version = "0.18", optional = true }
# Validation
validator = { workspace = true }
rustapi-validate = { workspace = true }
# Metrics (optional)
prometheus = { workspace = true, optional = true }
# SQLx (optional)
sqlx = { version = "0.8", optional = true, default-features = false }
# OpenAPI
rustapi-openapi = { workspace = true, default-features = false }
http-body = "1.0.1"
# HTTP/3 (optional)
quinn = { workspace = true, optional = true }
h3 = { version = "0.0.8", optional = true }
h3-quinn = { version = "0.0.10", optional = true }
rustls = { workspace = true, optional = true }
rustls-pemfile = { workspace = true, optional = true }
rcgen = { workspace = true, optional = true }
chrono = "0.4.43"
# Replay (feature-gated)
async-trait = { workspace = true, optional = true }
[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
proptest = "1.4"
rustapi-testing = { workspace = true }
reqwest = { version = "0.12", features = ["json", "stream"] }
async-stream = "0.3"
async-trait = { workspace = true }
[features]
default = ["swagger-ui", "tracing"]
swagger-ui = ["rustapi-openapi/swagger-ui"]
test-utils = []
cookies = ["dep:cookie"]
sqlx = ["dep:sqlx"]
metrics = ["dep:prometheus"]
compression = ["dep:flate2"]
compression-brotli = ["compression", "dep:brotli"]
simd-json = ["dep:simd-json"]
tracing = []
http3 = ["dep:quinn", "dep:h3", "dep:h3-quinn", "dep:rustls", "dep:rustls-pemfile"]
http3-dev = ["http3", "dep:rcgen"]
replay = ["dep:async-trait"]