-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
144 lines (118 loc) · 3.51 KB
/
Cargo.toml
File metadata and controls
144 lines (118 loc) · 3.51 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[workspace]
resolver = "2"
members = [
"crates/rustapi-rs",
"crates/rustapi-core",
"crates/rustapi-macros",
"crates/rustapi-validate",
"crates/rustapi-openapi",
"crates/rustapi-extras",
"crates/rustapi-toon",
"crates/rustapi-ws",
"crates/rustapi-view",
"crates/rustapi-testing",
"crates/rustapi-jobs",
"crates/rustapi-grpc",
"crates/cargo-rustapi",
]
[workspace.package]
version = "0.1.416"
edition = "2021"
authors = ["RustAPI Contributors, Tuntii"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Tuntii/RustAPI"
homepage = "https://github.com/Tuntii/RustAPI"
documentation = "https://docs.rs/rustapi-rs"
keywords = ["web", "framework", "api", "rest", "http"]
categories = ["web-programming::http-server"]
rust-version = "1.78"
[workspace.dependencies]
# Async runtime
tokio = "1.35"
# HTTP
hyper = "1.1"
hyper-util = "0.1"
http = "1.0"
http-body-util = "0.1"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Middleware
tower-service = "0.3"
# Utilities
thiserror = "2.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
futures-util = "0.3"
bytes = "1.5"
matchit = "0.7" # Radix tree router
pin-project-lite = "0.2"
async-trait = "0.1"
# Proc macros
syn = { version = "2.0", features = ["full", "parsing", "extra-traits"] }
quote = "1.0"
proc-macro2 = "1.0"
linkme = "0.3"
# Validation
validator = { version = "0.18", features = ["derive"] }
# UUID
uuid = { version = "1.6", features = ["v4"] }
# Metrics
prometheus = "0.13"
# TOON format
toon-format = { version = "0.4", default-features = false }
# Benchmarking
criterion = { version = "0.5", features = ["html_reports"] }
# WebSocket
tokio-tungstenite = "0.24"
tungstenite = "0.24"
# gRPC
tonic = "0.14"
prost = "0.14"
# Template engine
tera = "1.19"
# CLI
clap = { version = "4.5", features = ["derive", "color"] }
dialoguer = "0.11"
indicatif = "0.17"
console = "0.16"
# Internal crates
rustapi-rs = { path = "crates/rustapi-rs", version = "0.1.335", default-features = false }
rustapi-core = { path = "crates/rustapi-core", version = "0.1.335", default-features = false }
rustapi-macros = { path = "crates/rustapi-macros", version = "0.1.335" }
rustapi-validate = { path = "crates/rustapi-validate", version = "0.1.335" }
rustapi-openapi = { path = "crates/rustapi-openapi", version = "0.1.335", default-features = false }
rustapi-extras = { path = "crates/rustapi-extras", version = "0.1.335" }
rustapi-toon = { path = "crates/rustapi-toon", version = "0.1.335" }
rustapi-ws = { path = "crates/rustapi-ws", version = "0.1.335" }
rustapi-view = { path = "crates/rustapi-view", version = "0.1.335" }
rustapi-testing = { path = "crates/rustapi-testing", version = "0.1.335" }
rustapi-jobs = { path = "crates/rustapi-jobs", version = "0.1.335" }
rustapi-grpc = { path = "crates/rustapi-grpc", version = "0.1.335" }
# HTTP/3 (QUIC)
quinn = "0.11"
h3 = "0.0.8"
h3-quinn = "0.0.10"
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
rustls-pemfile = "2.2"
rcgen = "0.13"
# ============================================
# Release Profile - Maximum Performance
# ============================================
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
debug = false
# Benchmark Profile - Even more aggressive
[profile.bench]
inherits = "release"
lto = "fat"
codegen-units = 1
# Release with debug symbols for profiling
[profile.release-with-debug]
inherits = "release"
debug = true
strip = false