| Crates.io | clipin |
| lib.rs | clipin |
| version | 0.9.2 |
| created_at | 2026-01-12 15:46:45.163074+00 |
| updated_at | 2026-01-13 12:42:49.669351+00 |
| description | A Rust library to get text from clipboard or stdin |
| homepage | https://github.com/0x6b/clipin |
| repository | https://github.com/0x6b/clipin |
| max_upload_size | |
| id | 2038042 |
| size | 26,494 |
A Rust library to get text from clipboard or stdin.
Enable exactly one feature: async or sync. Returns trimmed text and optionally the clipboard instance if available.
cargo add clipin --features async
#[tokio::main]
async fn main() {
let (text, clipboard) = clipin::get().await.unwrap();
println!("{text}");
}
cargo add clipin --features sync
fn main() {
let (text, clipboard) = clipin::get().unwrap();
println!("{text}");
}
MIT. See LICENSE for details.