Crates.io | qr-rs |
lib.rs | qr-rs |
version | 0.2.0 |
source | src |
created_at | 2022-07-14 22:37:09.918082 |
updated_at | 2022-07-18 17:37:30.037235 |
description | A CLI utility to encode URLs or text into QR codes in various formats and colors. |
homepage | |
repository | https://github.com/marcoradocchia/qr-rs |
max_upload_size | |
id | 625941 |
size | 166,405 |
Command Line Interface utility to encode URLs or more generally text into QR codes in various file formats and colors.
The following installation instructions assume a Rust toolchain (rustc >=1.62.0
) installed
on the system. In order to install such toolchain you can use rusutp
: see
https://www.rust-lang.org/tools/install for further installation
instructions and notes.
In order to install using Rusts' package manager cargo
follow instructions
below.
To build and install from master branch run:
cargo install --git https://github.com/marcoradocchia/qr-rs --branch master
To build and install the latest release from crates.io run:
cargo install qr-rs
For Arch Linux (and other Arch based distros) a binary package1 is available in the AUR (Arch User Repository):
You can install it using an AUR helper such as yay
:
yay -S qr-rs-bin
or paru
:
paru -S qr-rs-bin
qr-rs 0.2.0
Marco Radocchia <marco.radocchia@outlook.com>
A CLI utility to encode URLs or text into QR codes in various formats and colors.
USAGE:
qr [OPTIONS] [STRING]
ARGS:
<STRING> String to encode
OPTIONS:
-b, --bg <BG>
Foreground color (hex code) [default: #FFF]
-B, --border <BORDER>
Border size (expressed in unit blocks) [default: 1]
--error-correction-level <ERROR_CORRECTION_LEVEL>
QR error orrection level [default: medium] [possible values: low, medium, quartile,
high]
-f, --fg <FG>
Background color (hex code) [default: #000]
-h, --help
Print help information
-o, --output <OUTPUT>
Output file (supported file extensions: jpeg, jpg, png, svg); omit to print QR code to
console
-s, --scale <SCALE>
Scale factor (raster image output only) [default: 25]
-V, --version
Print version information
Complete CHANGELOG.
Currently only x86_64
↩