aweinstock314 / rust-clipboard

System Clipboard interfacing library in Rust
Apache License 2.0
365 stars 75 forks source link

Put platform implementations behind feature toggles, enable by default #75

Open timvisee opened 4 years ago

timvisee commented 4 years ago

This adds a compiler feature for each platform implementation (namely windows, macos and x11). All are enabled by default so nothing is changed.

I'd like this because I've rust-clipboard as dependency for traits, but I don't want to build with the nasty new XCB dependencies the X11 clipboard provider implementation requires.

The Travis CI build currently fails due to these missing dependencies in CI as well. This is fixed separately in #73 .