#clipboard #error #improved #better #com #mime #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

#182 in Windows APIs

Download history 22/week @ 2023-12-11 20/week @ 2023-12-18 12/week @ 2023-12-25 36/week @ 2024-01-01 51/week @ 2024-01-08 19/week @ 2024-01-15 18/week @ 2024-01-22 5/week @ 2024-01-29 19/week @ 2024-02-05 30/week @ 2024-02-12 43/week @ 2024-02-19 60/week @ 2024-02-26 37/week @ 2024-03-04 41/week @ 2024-03-11 39/week @ 2024-03-18 55/week @ 2024-03-25

179 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