optimize release build

This commit is contained in:
Rokas Puzonas 2023-05-06 20:29:04 +03:00
parent e8dc59a82f
commit f2963a3d4e
2 changed files with 8 additions and 4 deletions

2
Cargo.lock generated
View File

@ -2756,7 +2756,7 @@ checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba"
[[package]]
name = "ubusman"
version = "0.1.0"
version = "1.0.0"
dependencies = [
"anyhow",
"async-ssh2-lite",

View File

@ -1,10 +1,8 @@
[package]
name = "ubusman"
version = "0.1.0"
version = "1.0.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0.70"
async-ssh2-lite = { version = "0.4.5", features = ["async-io"] }
@ -26,3 +24,9 @@ thiserror = "1.0.40"
tokio = { version = "1.26.0", features = ["macros", "rt-multi-thread"] }
toml = "0.7.3"
version = "3.0.0"
[profile.release]
opt-level = 'z' # Optimize for size
lto = true # Enable link-time optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations
strip = true # Strip symbols from binary*