clipboard2

Crates.ioclipboard2
lib.rsclipboard2
version0.1.1
sourcesrc
created_at2018-07-03 15:10:42.707344
updated_at2018-10-27 05:19:15.320817
descriptionclipboard2 is an improved version of clipboard-rs with better error handling and MIME type handling on Windows
homepage
repositoryhttps://github.com/fschutt/clipboard2
max_upload_size
id72747
size22,655
Felix Schütt (fschutt)

documentation

README

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());
}
Commit count: 23

cargo fmt