Skip to content

Commit 577cd3b

Browse files
committed
Configure profile.release
1 parent c96b0c9 commit 577cd3b

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

rust/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ nostr-sdk = { git = "https://github.com/rust-nostr/nostr", rev = "3b988fb13e0ea
1414

1515
[build-dependencies]
1616
flutter_rust_bridge_codegen = "=2.0.0"
17+
18+
[profile.release]
19+
opt-level = 'z' # Optimize for size.
20+
lto = true # Enable Link Time Optimization
21+
codegen-units = 1 # Reduce the number of codegen units to increase optimizations.
22+
panic = "abort" # Abort on panic
23+
strip = true # Strip symbols from binary.

rust/cargokit.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
cargo:
2-
debug:
3-
toolchain: stable
4-
release:
5-
toolchain: nightly
6-
extra_flags:
7-
- -Z
8-
- build-std=panic_abort,std
9-
101
precompiled_binaries:
112
# Uri prefix used when downloading precompiled binaries.
123
url_prefix: https://github.com/rust-nostr/nostr-sdk-flutter/releases/download/precompiled_

0 commit comments

Comments
 (0)