theseus-rs / postgresql-embedded

Embed PostgreSQL database
Apache License 2.0
34 stars 5 forks source link

Question: Any possibility of making zonkyio optional (along with the xz2 dependency) ? #98

Closed helio-frota closed 1 week ago

helio-frota commented 1 week ago

We are using https://crates.io/crates/rust-lzma and when trying to update postgresql-embedded to 0.13 we can see similar error like this https://github.com/trustification/trustify/pull/496#issuecomment-2205784223

because rust-lzma and xz2 are linking with the same native library.

thanks

brianheineman commented 1 week ago

Hello @helio-frota, thanks for reporting the issue. I created new feature flags in #100 to enable zonky if desired (it is a non-default feature).

helio-frota commented 1 week ago

@brianheineman thanks !

the native-link error gone when using:

postgresql_archive = { git = "https://github.com/theseus-rs/postgresql-embedded", rev = "d24fd83d34879fc04a056ecd201e0c7732d527d0" }
postgresql_embedded = { git = "https://github.com/theseus-rs/postgresql-embedded", rev = "d24fd83d34879fc04a056ecd201e0c7732d527d0" }
brianheineman commented 1 week ago

@helio-frota this change was released in 0.14.0