From f14215f02eb1fb13661ba40be4024847e7847448 Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Mon, 18 Nov 2024 12:18:45 +0100 Subject: [PATCH] ffi: add `.cargo/config.toml` Signed-off-by: Yuki Kishimoto --- bindings/nostr-sdk-ffi/.cargo/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 bindings/nostr-sdk-ffi/.cargo/config.toml diff --git a/bindings/nostr-sdk-ffi/.cargo/config.toml b/bindings/nostr-sdk-ffi/.cargo/config.toml new file mode 100644 index 000000000..4622e7921 --- /dev/null +++ b/bindings/nostr-sdk-ffi/.cargo/config.toml @@ -0,0 +1,6 @@ +[profile.release] +opt-level = 'z' # Optimize for size. +lto = true # Enable Link Time Optimization +codegen-units = 1 # Reduce number of codegen units to increase optimizations. +panic = "abort" # Abort on panic +strip = "debuginfo" # Partially strip symbols from binary