Skip to content

Commit

Permalink
Configure profile.release
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Dec 23, 2024
1 parent c96b0c9 commit 577cd3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 7 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ nostr-sdk = { git = "https://github.com/rust-nostr/nostr", rev = "3b988fb13e0ea

[build-dependencies]
flutter_rust_bridge_codegen = "=2.0.0"

[profile.release]
opt-level = 'z' # Optimize for size.
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce the number of codegen units to increase optimizations.
panic = "abort" # Abort on panic
strip = true # Strip symbols from binary.
9 changes: 0 additions & 9 deletions rust/cargokit.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
cargo:
debug:
toolchain: stable
release:
toolchain: nightly
extra_flags:
- -Z
- build-std=panic_abort,std

precompiled_binaries:
# Uri prefix used when downloading precompiled binaries.
url_prefix: https://github.com/rust-nostr/nostr-sdk-flutter/releases/download/precompiled_
Expand Down

0 comments on commit 577cd3b

Please sign in to comment.