Skip to content

Commit

Permalink
Allow uniffi_automerge to be consumed as a crate dependency
Browse files Browse the repository at this point in the history
Currently two static libraries generated by a Rust toolchain cannot be
linked together in a single binary due to symbol conflicts (see
rust-lang/rust#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.
  • Loading branch information
kateinoigakukun authored and heckj committed Dec 5, 2024
1 parent 6e729d2 commit 9bb3b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["staticlib"]
crate-type = ["staticlib", "rlib"]
name = "uniffi_automerge"

[[bin]]
Expand Down

0 comments on commit 9bb3b5f

Please sign in to comment.