make sharing to clipboard a feature that can be disabled

this is for users that want to eliminate dependences (e.g. libxcb).
the feature is enabled by default and must be explicitly disabled.

fixes #84
This commit is contained in:
Henrik Friedrichsen
2019-08-13 11:48:42 +02:00
parent 9664882cdb
commit f7458b4137
4 changed files with 14 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ extern crate clap;
extern crate crossbeam_channel;
#[macro_use]
extern crate cursive;
#[cfg(feature = "share_clipboard")]
extern crate clipboard;
extern crate directories;
extern crate failure;