#clipboard #pasteboard #pbcopy #rust

app rscopy

A simple Rust implementation of pbcopy ๐Ÿฆ€๐Ÿ“‹

2 releases

new 0.1.1 May 5, 2025
0.1.0 May 5, 2025

#1392 in Command line utilities

MIT license

5KB

๐Ÿš€ rscopy

A lightning-fast ๐Ÿฆ€ Rust implementation of macOS's pbcopy!


โœจ What is 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 ๐Ÿ’ช.


๐Ÿ”ง How it works

echo "Hello from Rust!" | rscopy

Whatever you pipe into rscopy will instantly be available on your clipboard, ready to paste wherever you like ๐Ÿš€.


๐Ÿ› ๏ธ Installation

๐Ÿฃ Build from source

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!


๐Ÿงช Usage

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

๐Ÿ“ฆ Dependencies

  • clipboard crate โ€” handles the clipboard operations for you.

Dependencies

~14โ€“325KB