Оптимизация для косплатформенной компиляции

This commit is contained in:
2026-04-16 17:17:28 +03:00
parent 8ec326cd21
commit b4f358b12f
3 changed files with 25 additions and 1 deletions

View File

@@ -28,4 +28,16 @@ log = "0.4"
env_logger = "0.11"
[dev-dependencies]
tokio = { version = "1.0", features = ["full", "rt-multi-thread"] }
tokio = { version = "1.0", features = ["full", "rt-multi-thread"] }
[target.x86_64-unknown-linux-gnu.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
[target.x86_64-unknown-linux-musl.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
[profile.release]
opt-level = "z" # Оптимизация на размер (s/z)
lto = true # Link Time Optimization
codegen-units = 1 # Лучшая оптимизация (но дольше компиляция)
strip = true