-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCargo.toml
More file actions
35 lines (28 loc) · 904 Bytes
/
Cargo.toml
File metadata and controls
35 lines (28 loc) · 904 Bytes
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
[package]
name = "_durak_core"
version = "0.4.0"
edition = "2021"
rust-version = "1.70"
[lib]
name = "_durak_core"
crate-type = ["cdylib"]
[dependencies]
pyo3 = { version = "0.27", features = ["extension-module"] }
regex = "1.10"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[profile.release]
# Enable Link-Time Optimization for cross-module inlining
# Trades longer compile time for faster runtime
lto = true
# Single codegen unit allows more aggressive optimization
# Default is 16 (parallelizes compilation but limits optimization)
codegen-units = 1
# Maximum optimization level (default is 3, but explicit is good)
opt-level = 3
# Strip debug symbols from release binary
# Reduces binary size by 2-3x with zero runtime cost
strip = true
# Abort on panic instead of unwinding
# Slightly faster, smaller binary (NLP workloads rarely recover from panics)
panic = "abort"