2 releases
Uses old Rust 2015
0.1.1 | Oct 27, 2018 |
---|---|
0.1.0 | Jul 3, 2018 |
#191 in Windows APIs
251 downloads per month
Used in 4 crates
(3 directly)
20KB
480 lines
clipboard2
Hard fork of https://github.com/aweinstock314/rust-clipboard
This library has better error handling than the original one, the code is mostly copied.
Usage
extern crate clipboard2;
use clipboard2::{Clipboard, SystemClipboard};
fn main() {
let clipboard = SystemClipboard::new().unwrap();
clipboard.set_string_contents(String::from("Hello")).unwrap();
println!("{}", clipboard.get_string_contents().unwrap());
}
lib.rs
:
Improved cross-platform clipboard library
Fork of https://github.com/aweinstock314/rust-clipboard with better error handling
Dependencies
~0–330KB