Оптимизация для косплатформенной компиляции
This commit is contained in:
14
Cargo.toml
14
Cargo.toml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user