Skip to content

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

@Abubakar1122331

Description

@Abubakar1122331

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions