Skip to content

Commit 6e6db37

Browse files
shaheinmclaude
andauthored
Upgrade uniffi 0.29 → 0.31 (#117)
- Bump uniffi dependency in both [dependencies] and [build-dependencies] - Fix bindgen cwd: wrap cargo run in pushd/popd so uniffi 0.31's `generate` subcommand finds Cargo.toml via cargo metadata - Remove stale RUSTSEC advisory ignores (bincode, paste) that uniffi 0.31 no longer depends on Closes #107 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 909eea0 commit 6e6db37

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ path = "src/lib.rs"
1212
crate-type = ["lib", "staticlib", "cdylib"]
1313

1414
[dependencies]
15-
uniffi = { version = "0.29", features = ["cli"] }
15+
uniffi = { version = "0.31", features = ["cli"] }
1616
thiserror = "2.0"
1717
nom = "8.0"
1818

1919
[build-dependencies]
20-
uniffi = { version = "0.29", features = ["build"] }
20+
uniffi = { version = "0.31", features = ["build"] }
2121

2222
[[bin]]
2323
name = "uniffi-bindgen"

core/build-xcframework.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ lipo -create \
6060
# Generate UniFFI bindings (Swift source + C header + modulemap)
6161
GENERATED_DIR="$PROJECT_ROOT/apple/DivelogCore/Sources/RustBridge/Generated"
6262
mkdir -p "$GENERATED_DIR"
63-
cargo run --manifest-path "$SCRIPT_DIR/Cargo.toml" --features=uniffi/cli \
64-
--bin uniffi-bindgen generate "$SCRIPT_DIR/src/divelog_compute.udl" \
63+
pushd "$SCRIPT_DIR" > /dev/null
64+
cargo run --features=uniffi/cli \
65+
--bin uniffi-bindgen generate src/divelog_compute.udl \
6566
--language swift \
6667
--out-dir "$GENERATED_DIR"
68+
popd > /dev/null
6769

6870
# Create include directories with headers
6971
for DIR in "$MACOS_DIR" "$IOS_DIR" "$SIM_DIR"; do

core/deny.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
# https://embarkstudios.github.io/cargo-deny/
33

44
[advisories]
5-
ignore = [
6-
# UniFFI transitive deps — unmaintained but no action available.
7-
# These will resolve when we upgrade UniFFI.
8-
{ id = "RUSTSEC-2025-0141", reason = "bincode is a UniFFI transitive dep, no upgrade path" },
9-
{ id = "RUSTSEC-2024-0436", reason = "paste is a UniFFI transitive dep, no upgrade path" },
10-
]
115

126
[licenses]
137
allow = [

0 commit comments

Comments
 (0)