bbqr-rust
Implementaion of the bbqr spec in rust:
https://github.com/coinkite/BBQr/blob/master/BBQr.md
Usage
Split large data up
use ;
let data: & = b"Hello, World!, but much larger";
// split the data using default options
let split = try_from_data
.expect;
// or split the data using zlib encoding, and custom options
let split = try_from_data.expect;
// print out each of the parts
println!;
// generate the qr codes
let qr_codes = split.generate_qr_codes;
Join split QR codes
// get the parts from somewhere
let parts: = "...";
// join the parts
let joined = try_from_parts.expect;
/// joined.data has the raw bytes
match &joined.encoding
Join QR codes one by one
use ;
// create new continuous joiner
let mut continuous_join = new;
// part from QR code scanning;
let part = "... placeholder ...";
let join_result = continuous_join.add_part.expect;
match join_result