-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
173 lines (131 loc) · 4.04 KB
/
Copy pathCargo.toml
File metadata and controls
173 lines (131 loc) · 4.04 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[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-grpc",
"crates/rustapi-mcp",
"crates/cargo-rustapi",
]
exclude = ["apps/bayram-leaderboard"]
[workspace.package]
version = "0.2.0"
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.85"
[workspace.dependencies]
# Async runtime
tokio = "1.50"
# 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
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.19", features = ["derive"] }
# UUID
uuid = { version = "1.6", features = ["v4"] }
# Metrics
prometheus = { version = "0.14", default-features = false }
# 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 = { version = "2.0", features = ["glob_fs"] }
# CLI
clap = { version = "4.5", features = ["derive", "color"] }
dialoguer = "0.11"
indicatif = "0.18"
console = "0.16"
open = "5"
chrono = { version = "0.4", features = ["serde"] }
# Internal crates
rustapi-rs = { path = "crates/rustapi-rs", version = "0.2.0", default-features = false }
rustapi-core = { path = "crates/rustapi-core", version = "0.2.0", default-features = false }
rustapi-macros = { path = "crates/rustapi-macros", version = "0.2.0" }
rustapi-validate = { path = "crates/rustapi-validate", version = "0.2.0" }
rustapi-openapi = { path = "crates/rustapi-openapi", version = "0.2.0", default-features = false }
rustapi-extras = { path = "crates/rustapi-extras", version = "0.2.0" }
rustapi-toon = { path = "crates/rustapi-toon", version = "0.2.0" }
rustapi-ws = { path = "crates/rustapi-ws", version = "0.2.0" }
rustapi-view = { path = "crates/rustapi-view", version = "0.2.0" }
rustapi-testing = { path = "crates/rustapi-testing", version = "0.2.0" }
rustapi-grpc = { path = "crates/rustapi-grpc", version = "0.2.0" }
rustapi-mcp = { path = "crates/rustapi-mcp", version = "0.2.0" }
# 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"] }
rcgen = "0.14"
# ============================================
# Release Profile - Maximum Performance
# ============================================
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
debug = false
# Low-RAM release: thin LTO + split codegen avoids Windows OOM/BSOD during linking.
# Use: cargo build --profile release-low-mem --workspace
# Or: cargo release-safe
[profile.release-low-mem]
inherits = "release"
lto = "thin"
codegen-units = 4
# Lighter dev profile when even debug builds spike RAM (optional).
# Use: cargo build --profile dev-low-mem -p rustapi-core
[profile.dev-low-mem]
inherits = "dev"
debug = 1
# 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