-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
67 lines (64 loc) · 1.65 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
[package]
name = "astra"
version = "0.7.1"
authors = ["Elham Aryanpur <[email protected]>"]
description = "Experimental LuaJIT webserver framework written in Rust + Axum"
edition = "2021"
license = "Apache-2.0"
exclude = ["examples"]
[features]
default = ["sqlx", "compression"]
sqlx = ["dep:sqlx"]
compression = [
"dep:tower",
"tower-http/compression-full",
"tower-http/decompression-full",
]
[dependencies]
axum = { version = "0.8.0", features = ["macros", "multipart"] }
bytes = { version = "1.9.0", features = ["serde"] }
chrono = { version = "0.4.39", features = ["serde"] }
dotenvy = "0.15.7"
mlua = { version = "0.10.2", features = [
"luajit",
"serialize",
"vendored",
"async",
"send",
"error-send",
"macros",
"anyhow",
] }
reqwest = { version = "0.12.11", features = [
"json",
"rustls-tls",
"charset",
"http2",
"macos-system-configuration",
], default-features = false }
serde = { version = "1.0.216", features = ["derive"] }
serde_json = "1.0.133"
sqlx = { version = "0.8.2", features = [
"runtime-tokio",
"tls-rustls",
"postgres",
"json",
"chrono",
"uuid",
], optional = true }
tokio = { version = "1.42.0", features = ["macros", "rt-multi-thread"] }
toml = "0.8.19"
tower = { version = "0.5.2", optional = true }
tower-http = { version = "0.6.2", features = ["fs", "trace"] }
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
uuid = { version = "1.11.0", features = ["serde", "v4"] }
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
overflow-checks = false
debug = 0
[profile.release.package."*"]
opt-level = 3
codegen-units = 1