quirs

QuiRS: a Rust wrapper around the Quirc QR decode library


Keywords
decoder, quirc, qr, barcode, qrcode
License
BSD-2-Clause-FreeBSD

Documentation

Qui-RS

Qui-RS on crates.io Qui-RS on docs.rs Qui-RS Download Qui-RS License Twitter

Lines of Code goto counter fuck counter

A Rust wrapper around the QR decoder library quirc.

Building

You'll need a working C toolchain (C compiler, linker, make, pkg-config) in order to be able to build the bundled quirc library.

You will also need a Rust toolchain of version 1.24 or higher.

On Debian-based GNU/Linux distros, the following may work for installing GCC:

sudo apt install build-essential gcc make pkg-config

On macOS, you can just install the Xcode Command-Line Tools in order to have a clang-based C toolchain.

Once you have the C and Rust toolchains, just run the following command from the repo root:

git submodule update --init --recursive
cargo build

Usage

See examples/. It should be self-explanatory.