#Dependency error when trying to add tauri-plugin-deep-link

2 messages · Page 1 of 1 (latest)

alpine ridge
#

Trying to make an app with oauth integration so deep linking would be great. Noticed fabian has a preliminary plugin (tauri-plugin-deep-link) (https://github.com/tauri-apps/plugins-workspace/tree/v2/plugins/deep-link)
Trying to add version 2.0.0 alpha 5 via the cli command cargo add tauri-plugin-deep-link@2.0.0-alpha.5

but I get the following error

error: failed to select a version for `webkit2gtk-sys`.
    ... required by package `webkit2gtk v2.0.1`
    ... which satisfies dependency `webkit2gtk = "=2.0.1"` of package `tauri v2.0.0-alpha.20`
    ... which satisfies dependency `tauri = "^2.0.0-alpha.20"` of package `tauri-plugin-deep-link v2.0.0-alpha.5`
    ... which satisfies dependency `tauri-plugin-deep-link = "^2.0.0-alpha.5"` of package `app v0.1.0 (C:\Users\iperi\workspace\omnichat-overlay\src-tauri)`     
versions that meet the requirements `^2.0.1` are: 2.0.1

the package `webkit2gtk-sys` links to the native library `web_kit2`, but it conflicts with a previous package which links to `web_kit2` as well:
package `webkit2gtk-sys v0.18.0`
    ... which satisfies dependency `ffi = "^0.18"` of package `webkit2gtk v0.18.2`
    ... which satisfies dependency `webkit2gtk = "^0.18.2"` of package `tauri v1.5.4`
    ... which satisfies dependency `tauri = "^1.5.4"` of package `app v0.1.0 (C:\Users\iperi\workspace\omnichat-overlay\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 ='webkit2gtk-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `webkit2gtk-sys` which could resolve this conflict

This is a pretty new project so the deps are just the base tauri ones

[build-dependencies]
tauri-build = { version = "1.5.1", features = [] }

[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.5.4", features = [ "window-set-resizable", "window-set-size", "window-set-max-size", "window-set-min-size", "window-set-title", "window-minimize", "window-unmaximize", "window-set-position", "window-set-maximizable", "window-set-minimizable", "window-start-dragging", "system-tray", "window-set-ignore-cursor-events", "window-set-icon", "window-center", "window-set-focus", "window-print", "window-set-decorations", "window-set-cursor-icon", "window-set-cursor-visible", "window-set-cursor-position", "window-set-cursor-grab", "window-set-content-protected", "window-set-closable", "window-maximize", "window-show", "window-hide", "window-unminimize", "window-close", "global-shortcut-all"] }
tauri-plugin-deep-link = "2.0.0-alpha.5"

Pretty new to rust and Tauri so I probably missed something silly. Any help appreciated. Using windows 10. rustc version 1.74.0

GitHub

All of the official Tauri plugins in one place! Contribute to tauri-apps/plugins-workspace development by creating an account on GitHub.

spring bone
#

for tauri v1 you'll have to use the 0.1.2 version of the plugin