| Crates.io | rscopy |
| lib.rs | rscopy |
| version | 0.1.1 |
| created_at | 2025-05-05 13:47:38.411972+00 |
| updated_at | 2025-05-05 13:51:11.199349+00 |
| description | A simple Rust implementation of pbcopy ๐ฆ๐. |
| homepage | https://github.com/mortentobias/rscopy |
| repository | https://github.com/mortentobias/rscopy |
| max_upload_size | |
| id | 1660724 |
| size | 8,841 |
A lightning-fast ๐ฆ Rust implementation of macOS's pbcopy!
rscopy?rscopy is a simple, no-fuss command-line tool that copies input from standard input (stdin) straight to your system clipboard ๐ โ just like pbcopy, but written in Rust for speed โก๏ธ and reliability ๐ช.
echo "Hello from Rust!" | rscopy
Whatever you pipe into rscopy will instantly be available on your clipboard, ready to paste wherever you like ๐.
Make sure you have Rust installed ๐ฆ, then:
git clone https://github.com/yourusername/rscopy.git
cd rscopy
cargo build --release
Then copy the binary to somewhere in your PATH:
cp target/release/rscopy /usr/local/bin/
โจ Done!
| Command | What it does |
|---|---|
echo "text" | rscopy |
Copies "text" to your clipboard โ๏ธ |
cat file.txt | rscopy |
Copies the contents of file.txt ๐ |
rscopy < file.txt |
Another way to copy a file's contents ๐ |
Example:
echo "Copy this to clipboard!" | rscopy
clipboard crate โ handles the clipboard operations for you.