Skip to content

Commit

Permalink
optimize release build for size
Browse files Browse the repository at this point in the history
  • Loading branch information
nrdxp authored and notgne2 committed Jan 13, 2022
1 parent 584ec12 commit f2a3044
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 59 deletions.
69 changes: 12 additions & 57 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = "3.0.0-beta.2"
clap = { version = "3.0.0-beta.2", features = [ "wrap_help" ] }
flexi_logger = "0.16"
fork = "0.1"
futures-util = "0.3.6"
Expand All @@ -23,7 +23,7 @@ serde = { version = "1.0.104", features = [ "derive" ] }
serde_json = "1.0.48"
signal-hook = "0.3"
thiserror = "1.0"
tokio = { version = "1.9.0", features = [ "full" ] }
tokio = { version = "1.9.0", features = [ "process", "macros", "sync", "rt-multi-thread", "fs", "time" ] }
toml = "0.5"
whoami = "0.9.0"
yn = "0.1"
Expand All @@ -37,3 +37,8 @@ smol_str = "=0.1.16"
[lib]
name = "deploy"
path = "src/lib.rs"

[profile.release]
lto = true
opt-level = "s"
codegen-units = 1

0 comments on commit f2a3044

Please sign in to comment.