YaLTeR / wl-clipboard-rs

A safe Rust crate for working with the Wayland clipboard.
Apache License 2.0
223 stars 16 forks source link

Cargo.toml: fix feature native_lib #27

Closed Funami580 closed 2 years ago

Funami580 commented 2 years ago

The problem was that the feature enabled a feature in wayland-server, although wayland-server was only available as a dev-dependeny. The most simple way to fix this is to just put wayland-server in the normal dependencies.

YaLTeR commented 2 years ago

Hm, what's the problem that this fixes? Looking at the warnings in the test output it seems as though cargo test uses the normal wayland-server while cargo test --features=dlopen uses the native_lib wayland-server correctly.

Funami580 commented 2 years ago

For me, the problem only occured when using this crate as a dependency with the feature native_lib in another crate.

YaLTeR commented 2 years ago

Maybe switching to the Cargo feature resolver v2 could fix this issue? I'm just not sure pulling wayland-server into the main dependencies is the best solution.

Funami580 commented 2 years ago

Just tried some things out and seems like updating to rust 1.58 solves the issue. Sorry for the inconvenience.

YaLTeR commented 2 years ago

Hm, alright.