#clipboard #error #better #com #mime #version #rust-clipboard

clipboard2

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

2 releases

Uses old Rust 2015

0.1.1 Oct 27, 2018
0.1.0 Jul 3, 2018

#226 in Windows APIs

Download history 59/week @ 2024-07-22 67/week @ 2024-07-29 52/week @ 2024-08-05 65/week @ 2024-08-12 44/week @ 2024-08-19 38/week @ 2024-08-26 66/week @ 2024-09-02 48/week @ 2024-09-09 47/week @ 2024-09-16 61/week @ 2024-09-23 70/week @ 2024-09-30 10/week @ 2024-10-07 52/week @ 2024-10-14 43/week @ 2024-10-21 42/week @ 2024-10-28 53/week @ 2024-11-04

190 downloads per month
Used in 4 crates (3 directly)

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

~0–330KB