yes-rs

Crates.ioyes-rs
lib.rsyes-rs
version0.2.0
created_at2025-05-25 16:48:46.256351+00
updated_at2025-05-26 15:50:26.543814+00
description🚀 A blazingly fast, memory-safe rewrite of the classic Unix 'yes' command. Written in Rust! 🦀
homepage
repositoryhttps://github.com/rust-evangelists/yes-rs
max_upload_size
id1688517
size91,543
Frank Denis (jedisct1)

documentation

README

yes-rs 🚀

A blazingly fast, memory-safe rewrite of the classic Unix yes command

Made with Rust Memory Safety Zero Cost Blazing Fast

Why rewrite yes in Rust? 🤔

Because the original yes command (written in shudders C) is:

  • ❌ Not memory-safe
  • ❌ Prone to buffer overflows
  • ❌ Lacks modern error handling
  • ❌ Missing zero-cost abstractions
  • ❌ No fearless concurrency
  • ❌ Not written in Rust

Features ✨

  • 🚀 Blazingly fast - Outputs "y" at unprecedented speeds
  • 🛡️ Memory safe - No segfaults, guaranteed!
  • Zero-cost abstractions - Maximum performance
  • 🔥 Fearless concurrency - Ready for async/await (coming soon!)
  • 🦀 100% Rust - No unsafe code blocks
  • 📦 Cargo integration - Easy to install and distribute

Installation 📦

cargo install yes-rs

Or build from source:

git clone https://github.com/rust-evangelists/yes-rs
cd yes-rs
cargo build --release

Usage 💻

Just like the original yes, but better:

# Output "y" forever (blazingly fast!)
yes-rs

# Output custom string forever (memory-safe!)
yes-rs "hello rust"

Benchmarks 📊

Command Language Lines of Code Memory Safety Speed
yes (GNU) C ~50 Fast
yes-rs Rust 🦀 ~1294 BLAZING FAST

Benchmarks conducted on my laptop

Contributing 🤝

We welcome contributions! Please ensure all code is:

  • ✅ Written in Rust
  • ✅ Memory-safe
  • ✅ Blazingly fast
  • ✅ Uses zero-cost abstractions

⚡ Powered by Rust ⚡

Commit count: 0

cargo fmt