3 releases
new 0.12.5 | Jan 21, 2025 |
---|---|
0.12.4 | Jan 21, 2025 |
0.12.3 | Jan 21, 2025 |
#1175 in Command line utilities
42 downloads per month
3MB
2K
SLoC
Contains (Mach-o exe, 15KB) tests/data/generated/generator
sqr 0.12.5
Scan QR with Quircs
- After: https://github.com/dignifiedquire/quircs which was ported from https://github.com/dlbeer/quirc
- Repo: https://github.com/pepa65/sqr
Install
Download and install static single-binary
wget https://github.com/pepa65/sqr/releases/download/0.12.5/sqr
sudo mv sqr /usr/local/bin
sudo chown root:root /usr/local/bin/sqr
sudo chmod +x /usr/local/bin/sqr
Install with cargo
If not installed yet, install a Rust toolchain, see https://www.rust-lang.org/tools/install
Direct from crates.io
cargo install sqr --example sqr
Direct from repo
cargo install --git https://github.com/pepa65/sqr --example sqr
Static build for Linux (avoiding GLIBC incompatibilities)
git clone https://github.com/pepa65/sqr
cd sqr
rustup target add x86_64-unknown-linux-musl
cargo rel # Alias defined in .cargo/config.toml
The binary will be at target/x86_64-unknown-linux-musl/release/sqr
Install with cargo-binstall
Even without a full Rust toolchain, rust binaries can be installed with the static binary cargo-binstall
:
# Install cargo-binstall for Linux x86_64
# (Other versions are available at https://crates.io/crates/cargo-binstall)
wget github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
tar xf cargo-binstall-x86_64-unknown-linux-musl.tgz
sudo chown root:root cargo-binstall
sudo mv cargo-binstall /usr/local/bin/
Only a linux-x86_64 (musl) binary available: cargo-binstall sqr
It will be installed in ~/.cargo/bin/
which still needs to be added to PATH
!
Usage
sqr 0.12.5
Usage: sqr [-h|--help] | [-v|--verbose] [-d|--dump] <image>...
-h/--help Show this help text
-v/--verbose Show processing information
-d/--dump Dump each identified QR code to the terminal