DEWQ 0.0.2

QR Code Generation Library
Documentation
  • Coverage
  • 87.5%
    7 out of 8 items documented3 out of 3 items with examples
  • Size
  • Source code size: 78.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.9 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • RubenMovsesyan

QR Code Generator Library

This library provides functionality to create QR codes with different error correction levels.

Modules

  • bit_utils: Utility functions for bit manipulation.
  • galios: Functions for Galois field arithmetic.
  • qr_code: Core QR code generation logic.

Functions

create_qr_code

pub fn create_qr_code(data: &str, error_correction_level: ErrorCorrectionLevel) -> BitMap

Creates a QR code from the given data and error correction level.

Parameters

  • data: A string slice that holds the data to be encoded in the QR code.
  • error_correction_level: The desired level of error correction for the QR code.

Returns

A BitMap representing the generated QR code.

Examples

use qr_code::*;

let qr_code = create_qr_code("HELLO, WORLD!", ErrorCorrectionLevel::Q);
println!("{}", qr_code);