#qr #cli #generator #image

app qr-image

A simple CLI tool to generate a qr_code image for easy sharing and privately

3 releases

new 0.1.2 Apr 2, 2025
0.1.1 Apr 2, 2025
0.1.0 Apr 2, 2025

#748 in Command line utilities

MIT license

25KB
101 lines

Rust-QR-Image-Generator

A blazing-fast and simple command-line application to generate qr-image based on user arguments using Rust.

✨ Features

  • 🚀 Many image formats
  • 🔍 Supports command-line input for data
  • 🌍 Free size argument input

🛠️ Installation

Prerequisites

  • 🦀 Rust (latest stable version recommended)

▶️ Run the CLI

  • Run this to install the package
cargo run qr-image
  • add this export PATH="$HOME/.cargo/bin:$PATH" to you shell configuration file e.g: ~/.zshrc ~/.bashrc
export PATH="$HOME/.cargo/bin:$PATH"
qr-image [data] [format] [size]

Example:

qr-image [https://hub.docker.com/] [jpeg] [600]

📦 Dependencies

  • 🌐 qrcode - for generating the code
  • 📜 serde and serde_json - for parsing data type
  • 📜 tokio for asynchronous runtime environment
  • 📜 image for converting qrcode to image format

🛡️ Error Handling

  • The CLI gracefully handles network errors and invalid arguments inputs.
  • If an error occurs, it provides a meaningful error message.

📜 License

This project is licensed under the MIT License.

🤝 Contribution

Feel free to fork the repository, create issues, or submit pull requests!


Dependencies

~18–33MB
~534K SLoC