From b7bd43b39b43fd29945eb476976418b29f11e963 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Tue, 19 Nov 2024 00:59:18 +0900 Subject: [PATCH] Allow `uniffi_automerge` to be consumed as a crate dependency Currently two static libraries generated by a Rust toolchain cannot be linked together in a single binary due to symbol conflicts (see https://github.com/rust-lang/rust/issues/104707). This is a problem for WebAssembly targets, where dynamic linking is not stable yet. To link multiple Rust-originated static libraries together, we need to produce a single static library from an umbrella crate that re-exports everything from its dependencies. This change allows `uniffi_automerge` to be consumed as a crate dependency by the umbrella crate. --- rust/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 8670c3f..83d40ff 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [lib] -crate-type = ["staticlib"] +crate-type = ["staticlib", "rlib"] name = "uniffi_automerge" [[bin]]