qr-image

Crates.ioqr-image
lib.rsqr-image
version0.1.3
created_at2025-04-02 16:31:44.277238+00
updated_at2025-04-03 08:38:40.73313+00
descriptionA simple CLI tool to generate a qr_code image for easy sharing and privately
homepage
repositoryhttps://github.com/Nkwenti-Severian-Ndongtsop/Rust-QR-Code-Generator.git
max_upload_size
id1616796
size91,425
@Nkwenti @Severian (Nkwenti-Severian-Ndongtsop)

documentation

README

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 inputs for data
  • 🌍 Any 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!


Commit count: 0

cargo fmt