Registry / utility / clipboard-win

clipboard-win

JSON →
library5.4.1rscratesunverified

Provides simple way to interact with Windows clipboard.

# Cargo.toml [dependencies] clipboard-win = "5.4.1"
INSTALL
IMPORT
SIG · CLIPBOARD-WIN
C
clipboard-win
utilityrustv5.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Clipboard
use clipboard_win::Clipboard;

Sets text to the Windows clipboard.

use clipboard_win::Clipboard; fn main() { let clip = Clipboard::new().unwrap(); clip.set_string("Hello, clipboard!").unwrap(); println!("Text set to clipboard"); }
Debug
Known issues
gotchaOnly works on Windows; will fail on other platforms.
fix
Use conditional compilation or a cross-platform clipboard crate like arboard.
affects: *
Upgrade
Version history
5.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
clipboard-win — cargo add clipboard-win · libregistry