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

Tauri 2.0 #5

Open
martpie opened this issue Feb 23, 2024 · 2 comments
Open

Tauri 2.0 #5

martpie opened this issue Feb 23, 2024 · 2 comments

Comments

@martpie
Copy link

martpie commented Feb 23, 2024

Hi, would it be possible to update this plugin the support higher versions of Tauri? :)

error: failed to select a version for `webkit2gtk-sys`.
    ... required by package `wry v0.15.0`
    ... which satisfies dependency `wry = "^0.15"` of package `tauri-runtime-wry v0.4.0`
    ... which satisfies dependency `tauri-runtime-wry = "^0.4.0"` of package `tauri v1.0.0-rc.8`
    ... which satisfies dependency `tauri = "^1.0.0-rc.8"` of package `tauri-plugin-nosleep v0.1.0`
    ... which satisfies dependency `tauri-plugin-nosleep = "^0.1.0"` of package `museeks v0.20.0 (/Users/martpie/dev/museeks/src-tauri)`
versions that meet the requirements `^0.17` are: 0.17.0

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 v2.0.1`
    ... which satisfies dependency `ffi = "^2.0.1"` of package `webkit2gtk v2.0.1`
    ... which satisfies dependency `webkit2gtk = "=2.0.1"` of package `tauri v2.0.0-beta.6`
    ... which satisfies dependency `tauri = "^2.0.0-beta.5"` of package `museeks v0.20.0 (/Users/martpie/dev/museeks/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 = "web_kit2"` 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
error Command failed with exit code 101.
@pevers
Copy link
Owner

pevers commented Feb 24, 2024

Hi, would it be possible to update this plugin the support higher versions of Tauri? :)

error: failed to select a version for `webkit2gtk-sys`.
    ... required by package `wry v0.15.0`
    ... which satisfies dependency `wry = "^0.15"` of package `tauri-runtime-wry v0.4.0`
    ... which satisfies dependency `tauri-runtime-wry = "^0.4.0"` of package `tauri v1.0.0-rc.8`
    ... which satisfies dependency `tauri = "^1.0.0-rc.8"` of package `tauri-plugin-nosleep v0.1.0`
    ... which satisfies dependency `tauri-plugin-nosleep = "^0.1.0"` of package `museeks v0.20.0 (/Users/martpie/dev/museeks/src-tauri)`
versions that meet the requirements `^0.17` are: 0.17.0

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 v2.0.1`
    ... which satisfies dependency `ffi = "^2.0.1"` of package `webkit2gtk v2.0.1`
    ... which satisfies dependency `webkit2gtk = "=2.0.1"` of package `tauri v2.0.0-beta.6`
    ... which satisfies dependency `tauri = "^2.0.0-beta.5"` of package `museeks v0.20.0 (/Users/martpie/dev/museeks/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 = "web_kit2"` 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
error Command failed with exit code 101.

Yes I'll have a look to upgrade it to Tauri 2.0. Thanks for letting me know

@pevers
Copy link
Owner

pevers commented Feb 25, 2024

I've made a v2 version in the v2 branch which supports Tauri v2. Beta release is here https://github.com/pevers/tauri-plugin-nosleep/releases/tag/2.0.0-beta1 and here https://crates.io/crates/tauri-plugin-nosleep/versions . This should follow the Tauri SemVer.

I tested it with an example using v2 and that seems to work.

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

2 participants