Skip to content

Commit

Permalink
Change settings for the release profile
Browse files Browse the repository at this point in the history
Change `codegen-units` to 1, and `panic` to "abort" for pre-built
binaries.
  • Loading branch information
sorairolake committed Dec 3, 2023
1 parent 28e85a1 commit 75b03eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ permissions:

env:
CARGO_PROFILE_RELEASE_LTO: true
CARGO_PROFILE_RELEASE_PANIC: "abort"

jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ clap = { version = "4.4.10", features = ["derive"] }
dialoguer = { version = "0.11.0", default-features = false, features = ["password"] }

[profile.release.package.abcrypt-cli]
codegen-units = 1
# The `lto` setting cannot be specified yet, see https://github.com/rust-lang/cargo/issues/9330
# lto = true
# The `panic` setting cannot be specified yet, see https://github.com/rust-lang/cargo/issues/9330
# panic = "abort"
strip = true
6 changes: 6 additions & 0 deletions crates/cli/CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ All notable changes to this project will be documented in this file.
The format is based on https://keepachangelog.com/[Keep a Changelog], and this
project adheres to https://semver.org/[Semantic Versioning].

== {compare-url}/abcrypt-cli-v0.2.5\...HEAD[Unreleased]

=== Changed

* Change settings for the release profile ({pull-request-url}/157[#157])

== {compare-url}/abcrypt-cli-v0.2.4\...abcrypt-cli-v0.2.5[0.2.5] - 2023-11-29

=== Changed
Expand Down

0 comments on commit 75b03eb

Please sign in to comment.