diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index e5ebf73..71048ac 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -71,4 +71,7 @@ jobs: target: ${{ matrix.target }} # (required) GitHub token for uploading assets to GitHub Releases. token: ${{ secrets.GITHUB_TOKEN }} + env: + CARGO_PROFILE_RELEASE_LTO: "fat" + CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1 diff --git a/Cargo.lock b/Cargo.lock index 04f5463..630ac36 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -333,6 +333,17 @@ dependencies = [ "syn 2.0.61", ] +[[package]] +name = "derive_more" +version = "0.99.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "digest" version = "0.10.7" @@ -539,6 +550,7 @@ dependencies = [ "human_bytes", "indicatif", "inquire", + "object 0.36.0", "object-rewrite", "thiserror", "ureq", @@ -742,12 +754,23 @@ dependencies = [ "memchr", ] +[[package]] +name = "object" +version = "0.36.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "576dfe1fc8f9df304abb159d767a29d0476f7750fbf8aa7ad07816004a207434" +dependencies = [ + "flate2", + "memchr", + "ruzstd", +] + [[package]] name = "object-rewrite" version = "0.1.1" source = "git+https://github.com/mcbegamerxx954/object#505d1f332eaa69bea39f4bfb5d3d4850cd166700" dependencies = [ - "object", + "object 0.35.0", ] [[package]] @@ -1010,6 +1033,17 @@ dependencies = [ "untrusted", ] +[[package]] +name = "ruzstd" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5174a470eeb535a721ae9fdd6e291c2411a906b96592182d05217591d5c5cf7b" +dependencies = [ + "byteorder", + "derive_more", + "twox-hash", +] + [[package]] name = "serde" version = "1.0.201" @@ -1107,6 +1141,12 @@ dependencies = [ "der", ] +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + [[package]] name = "strsim" version = "0.11.1" @@ -1213,6 +1253,16 @@ dependencies = [ "once_cell", ] +[[package]] +name = "twox-hash" +version = "1.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" +dependencies = [ + "cfg-if", + "static_assertions", +] + [[package]] name = "typenum" version = "1.17.0" diff --git a/Cargo.toml b/Cargo.toml index e2731af..fd0431c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ console = "0.15.8" human_bytes = { version = "0.4.3", default-features = false } indicatif = "0.17.8" inquire = { version = "0.7.5", default-features = false, features = ["console", "macros", "one-liners"] } + object-rewrite = "0.1.1" thiserror = "1.0.59" ureq = "2.9.6"