Skip to content

Commit 760da48

Browse files
committed
feat: binary optimizations
1 parent fe8525a commit 760da48

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151

5252
- name: Build
5353
run: cargo build --release --target ${{ matrix.target }}
54+
env:
55+
RUSTFLAGS: "-C target-cpu=native"
5456

5557
- name: Rename binary (Unix)
5658
if: matrix.os != 'windows-latest'

Cargo.toml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
[workspace]
22
resolver = "2"
33
members = ["rocas", "watcher"]
4-
5-
6-
# [package]
7-
# name = "rocas"
8-
# version = "0.1.0"
9-
# edition = "2024"
10-
11-
# [dependencies.forgeconf]
12-
# version = "0.4.1"
13-
# features = ["toml", "miette", "validators"]
14-
# default-features = false

rocas/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ name = "rocas"
33
version = "1.0.0"
44
edition = "2024"
55

6+
[profile.release]
7+
opt-level = 3
8+
lto = true
9+
codegen-units = 1
10+
strip = true
11+
panic = "abort"
12+
613
[dependencies]
714
log = "0.4.29"
815
env_logger = "0.11.9"

0 commit comments

Comments
 (0)