#clipboard #wayland

smithay-clipboard

Provides access to the wayland clipboard for client applications

10 releases

✓ Uses Rust 2018 edition

0.3.6 Nov 21, 2019
0.3.5 Sep 3, 2019
0.3.4 Aug 13, 2019
0.3.3 Jun 14, 2019
0.1.0 Feb 14, 2019

#78 in GUI

Download history 552/week @ 2019-08-08 718/week @ 2019-08-15 659/week @ 2019-08-22 618/week @ 2019-08-29 729/week @ 2019-09-05 491/week @ 2019-09-12 734/week @ 2019-09-19 668/week @ 2019-09-26 662/week @ 2019-10-03 675/week @ 2019-10-10 789/week @ 2019-10-17 1230/week @ 2019-10-24 989/week @ 2019-10-31 1147/week @ 2019-11-07 955/week @ 2019-11-14

3,412 downloads per month
Used in 11 crates (1 directly)

MIT license

37KB
636 lines

crates.io Build Status

Smithay Clipboard

This crate provides access to the wayland clipboard.

Documentation

The documentation for the master branch is available online.

The documentation for the releases can be found on docs.rs.


lib.rs:

Smithay Clipboard

Provides access to the wayland clipboard with only requirement being a WlDisplay object

let (display, _) =
Display::connect_to_env().expect("Failed to connect to the wayland server.");
let mut clipboard = smithay_clipboard::WaylandClipboard::new(&display);
clipboard.store(None, "Test data");
println!("{}", clipboard.load(None));

Dependencies

~3MB
~53K SLoC