Skip to content

Commit f336ce0

Browse files
committed
chore: Optimize binaries for size
1 parent 0ec6c04 commit f336ce0

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

Cargo.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ wit-bindgen-rust = "0.46.0"
2727
wit-parser = "0.239.0"
2828
wstd = "0.5.6"
2929

30-
3130
[profile.release]
32-
opt-level = "s"
31+
opt-level = "z"
32+
lto = true
33+
34+
[profile.release_webhook]
35+
inherits = "release"
36+
strip = "debuginfo"
37+
38+
[profile.release_workflow]
39+
inherits = "release"
3340
debug = "line-tables-only"

Justfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
gen-obelisk-ext:
22
scripts/obelisk-generate-extensions.sh
33

4+
clean:
5+
cargo clean
6+
47
build:
5-
(cd workflow/deployer-workflow/impl-flyio && cargo build --release)
8+
(cd workflow/deployer-workflow/impl-flyio && cargo build --profile release_workflow)
9+
(cd webhook/healthcheck && cargo build --profile release_webhook)
610

711
test:
812
cargo nextest run

obelisk-local.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ forward_stdout = "stderr"
2828
forward_stderr = "stderr"
2929

3030
[[workflow]]
31-
name = "deployer_flyio"
32-
location.path = "${OBELISK_TOML_DIR}/target/wasm32-unknown-unknown/release/obelisk_deployer_flyio.wasm"
31+
name = "obelisk_deployer_flyio"
32+
location.path = "${OBELISK_TOML_DIR}/target/wasm32-unknown-unknown/release_workflow/obelisk_deployer_flyio.wasm"
3333
backtrace.sources = { "${OBELISK_TOML_DIR}/workflow/deployer-workflow/impl-flyio/src/lib.rs" = "${OBELISK_TOML_DIR}/workflow/deployer-workflow/impl-flyio/src/lib.rs" }
3434

3535
[[http_server]]

0 commit comments

Comments
 (0)