qrcode-rust
QR code and Micro QR code encoder in Rust. Documentation.
Cargo.toml
[]
= "0.8"
The default settings will depend on the image
crate. If you don't need image generation capability, disable the default-features
:
[]
= { = "0.8", = false }
Example
Image generation
extern crate qrcode;
extern crate image;
use QrCode;
use Luma;
Generates this image:
String generation
extern crate qrcode;
use QrCode;
Generates this output:
############## ######## ##############
## ## ## ## ##
## ###### ## ## ## ## ## ###### ##
## ###### ## ## ## ## ###### ##
## ###### ## #### ## ## ###### ##
## ## #### ## ## ##
############## ## ## ## ##############
## ##
## ########## ## ## ##########
## ## ######## #### ##
########## #### ## #### ######
## ## #### ########## ####
###### ########## ## ## ##
## ## ## ##
############## ## ## ## ## ####
## ## ## ## ##########
## ###### ## ## ## ## ## ##
## ###### ## #### ########## ##
## ###### ## #### ## #### ##
## ## ## ######## ######
############## #### ## ## ##
SVG generation
extern crate qrcode;
use ;
use svg;
Generates this SVG: