rscopy

Crates.iorscopy
lib.rsrscopy
version0.1.1
created_at2025-05-05 13:47:38.411972+00
updated_at2025-05-05 13:51:11.199349+00
descriptionA simple Rust implementation of pbcopy ๐Ÿฆ€๐Ÿ“‹.
homepagehttps://github.com/mortentobias/rscopy
repositoryhttps://github.com/mortentobias/rscopy
max_upload_size
id1660724
size8,841
(mortentobias)

documentation

https://docs.rs/rscopy

README

๐Ÿš€ 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.

Commit count: 7

cargo fmt