Closed iceiix closed 5 years ago
Note this doesn't add any real support for clipboards on the web, but that could be added later as another enhancement (https://www.w3.org/TR/clipboard-apis/); this PR is only about getting it to compile
@aweinstock314 Thanks for the merge! Could you publish a new release on crates.io? (until then I can depend on the git revision)
rust-clipboard fails to build with the wasm32-unknown-emscripten target since it tries to build X clipboard support:
Since emscripten is recognized as "unix", but like macos and android it doesn't have an X11 clipboard, this pull request adds "emscripten" to the target_os exclusion for cfg unix:
and the crate compiles with no errors