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

failed to select a version for sqlite3-src. #12

Open
Abubakar1122331 opened this issue Apr 7, 2024 · 0 comments
Open

failed to select a version for sqlite3-src. #12

Abubakar1122331 opened this issue Apr 7, 2024 · 0 comments

Comments

@Abubakar1122331
Copy link

I've added this in Cargo.toml:
[dependencies.tauri-plugin-sqlite]
git = "https://github.com/lzdyes/tauri-plugin-sqlite"
tag = "v0.1.1"

error: failed to select a version for `sqlite3-src`.        
    ... required by package `sqlite3-sys v0.13.0`
    ... which satisfies dependency `sqlite3-sys = "^0.13"` of package `sqlite v0.26.0`
    ... which satisfies dependency `sqlite = "^0.26.0"` of package `tauri-plugin-sqlite v0.1.0 (https://github.com/lzdyes/tauri-plugin-sqlite?tag=v0.1.1#3d09a5a9)`
    ... which satisfies git dependency `tauri-plugin-sqlite` of package `pw-manager_db v0.0.0 (E:\Visual Studio Code\Rust\Rust Saves\Tauri Apps\pw-manager_db\src-tauri)`
versions that meet the requirements `^0.3` are: 0.3.0

the package `sqlite3-src` links to the native library `sqlite3`, but it conflicts with a previous package which links to `sqlite3` as well:
package `libsqlite3-sys v0.26.0`
    ... which satisfies dependency `libsqlite3-sys = "^0.26.0"` (locked to 0.26.0) of package `rusqlite v0.29.0`
    ... which satisfies dependency `rusqlite = "^0.29.0"` (locked to 0.29.0) of package `pw-manager_db v0.0.0 (E:\Visual Studio Code\Rust\Rust Saves\Tauri Apps\pw-manager_db\src-tauri)`
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 = "sqlite3"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `sqlite3-src` which could resolve this conflict
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