1 unstable release

0.1.0 May 18, 2023

#34 in #barcode

MIT/Apache

26KB
607 lines

Build Docs

barcode-rs

Description

Barcode-rs is an utility crate for encoding data into several supported formats

Currently supported formats:

  • Code11,
  • EAN13,
  • EAN8,
  • Interleaved 2 of 5,
  • Standard 2 of 5,

Usage

let my_data = "7501031311309";
let result: bit_vec::BitVec = my_data.barcode_encode(BarcodeFormat::EAN13).unwrap();

let my_data = "7501031311309".chars().collect::<Vec<char>>();
let result: bit_vec::BitVec = barcode_rs::encode(&my_data, BarcodeFormat::EAN13).unwrap();


lib.rs:

Description

Barcode-rs is an utility crate for encoding data into several supported formats

Currently supported formats:

  • Code11,
  • EAN13,
  • EAN8,
  • Interleaved 2 of 5,
  • Standard 2 of 5,

Usage

let my_data = "7501031311309";
let result: bit_vec::BitVec = my_data.barcode_encode(BarcodeFormat::EAN13).unwrap();

let my_data = "7501031311309".chars().collect::<Vec<char>>();
let result: bit_vec::BitVec = barcode_rs::encode(&my_data, BarcodeFormat::EAN13).unwrap();

Dependencies

~0.7–1.2MB
~26K SLoC