#clipboard #wayland

smithay-clipboard

Provides access to the wayland clipboard for client applications

8 releases

✓ Uses Rust 2018 edition

0.3.3 Jun 14, 2019
0.3.2 Jun 12, 2019
0.2.1 Apr 27, 2019
0.1.1 Apr 23, 2019
0.1.0 Feb 14, 2019

#78 in GUI

Download history 12/week @ 2019-04-03 57/week @ 2019-04-10 8/week @ 2019-04-17 623/week @ 2019-04-24 1083/week @ 2019-05-01 757/week @ 2019-05-08 483/week @ 2019-05-15 392/week @ 2019-05-22 473/week @ 2019-05-29 840/week @ 2019-06-05 1219/week @ 2019-06-12 829/week @ 2019-06-19 707/week @ 2019-06-26 725/week @ 2019-07-03 475/week @ 2019-07-10

1,683 downloads per month

MIT license

26KB
451 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

~3.5MB
~58K SLoC