# bbqr-rust
Implementaion of the bbqr spec in rust: https://github.com/coinkite/BBQr/blob/master/BBQr.md ## Usage ### Split large data up ```rust use bbqr::{ encode::Encoding, file_type::FileType, join::Joined, qr::Version, split::{Split, SplitOptions}, }; let data: &[u8] = b"Hello, World!, but much larger"; // split the data using default options let split = Split::try_from_data(data, FileType::UnicodeText, Default::default()) .expect("Failed to split data"); // or split the data using zlib encoding, and custom options let split = Split::try_from_data( data, FileType::UnicodeText, SplitOptions { encoding: Encoding::Zlib, min_split_number: 2, max_split_number: 100, min_version: Version::V03, max_version: Version::V30, }, ).expect("Failed to split data"); // print out each of the parts println!("{:#?}", split.parts); // generate the qr codes let qr_codes = split.generate_qr_codes(); ``` ### Join split QR codes ```rust // get the parts from somewhere let parts: Vec