Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reexport rusqlite, please #27

Open
inferrna opened this issue Jan 12, 2023 · 0 comments
Open

Reexport rusqlite, please #27

inferrna opened this issue Jan 12, 2023 · 0 comments

Comments

@inferrna
Copy link

Please add this to lib.rs

pub extern crate rusqlite;

otherwise, this error will happen even with rusqlite = "0.24.2" (same version that sqlite-zstd uses) in Cargo.toml

error: failed to select a version for `libsqlite3-sys-le`.
    ... required by package `rusqlite-le v0.24.2`
    ... which satisfies dependency `rusqlite = "^0.24.2"` of package `sqlite-zstd v0.3.2 (/home/inferno/.dev/OtherAlien/sqlite-zstd)`
    ... which satisfies path dependency `sqlite-zstd` (locked to 0.3.2) of package `dictd v0.1.0 (/home/inferno/.dev/dictd)`
versions that meet the requirements `^0.21.0` are: 0.21.0

the package `libsqlite3-sys-le` links to the native library `sqlite3`, but it conflicts with a previous package which links to `sqlite3` as well:
package `libsqlite3-sys v0.20.1`
    ... which satisfies dependency `libsqlite3-sys = "^0.20.1"` of package `rusqlite v0.24.2`
    ... which satisfies dependency `rusqlite = "^0.24.2"` of package `dictd v0.1.0 (/home/inferno/.dev/dictd)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='libsqlite3-sys-le' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant