#clipboard

clipboard2

clipboard2 is an improved version of clipboard-rs with better error handling and MIME type handling on Windows

2 releases

0.1.1 Oct 27, 2018
0.1.0 Jul 3, 2018

#11 in #clipboard

Download history 10/week @ 2019-12-02 46/week @ 2019-12-09 27/week @ 2019-12-16 19/week @ 2019-12-23 45/week @ 2019-12-30 31/week @ 2020-01-06 25/week @ 2020-01-13 4/week @ 2020-01-20 7/week @ 2020-01-27 10/week @ 2020-02-03 8/week @ 2020-02-10 9/week @ 2020-02-17 10/week @ 2020-02-24 21/week @ 2020-03-02 70/week @ 2020-03-09 53/week @ 2020-03-16

81 downloads per month
Used in 2 crates

MIT license

20KB
480 lines

clipboard2

Build status Travis Build Status

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

~115KB