Skip to content

Commit 7216dcc

Browse files
committed
fix: disable LTO to preserve FFI symbols in iOS static library
1 parent 5e52e37 commit 7216dcc

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ name = "encrypted_upload_test"
7474
path = "examples/encrypted_upload_test.rs"
7575

7676
[workspace.package]
77-
version = "0.2.19"
77+
version = "0.2.20"
7878
edition = "2021"
7979
license = "MIT OR Apache-2.0"
8080
repository = "https://github.com/functionland/fula-api"
@@ -174,7 +174,9 @@ rstest = "0.23"
174174
mockall = "0.13"
175175

176176
[profile.release]
177-
lto = true
177+
# LTO disabled to preserve FFI symbols in iOS static libraries
178+
# With lto = true, the linker removes "unused" extern "C" functions
179+
lto = false
178180
opt-level = 3
179181
codegen-units = 1
180182
# Use "debuginfo" instead of "true" to preserve FFI symbols in static libraries

packages/fula_client/ios/fula_client.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Pod::Spec.new do |s|
88
s.name = 'fula_client'
9-
s.version = '0.2.19'
9+
s.version = '0.2.20'
1010
s.summary = 'Flutter SDK for Fula decentralized storage'
1111
s.description = <<-DESC
1212
A Flutter plugin providing client-side encryption, metadata privacy,

packages/fula_client/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fula_client
22
description: Flutter SDK for Fula decentralized storage with client-side encryption, metadata privacy, and secure sharing.
3-
version: 0.2.19
3+
version: 0.2.20
44
homepage: https://fx.land
55
repository: https://github.com/functionland/fula-api
66
issue_tracker: https://github.com/functionland/fula-api/issues

0 commit comments

Comments
 (0)