barcode-rs

Crates.iobarcode-rs
lib.rsbarcode-rs
version0.1.0
sourcesrc
created_at2023-05-18 11:45:59.995127
updated_at2023-05-18 11:45:59.995127
descriptionUtility crate for barcode binary encoding
homepage
repositoryhttps://github.com/ChristianBelloni/barcode-rs
max_upload_size
id867782
size25,996
Christian Belloni (ChristianBelloni)

documentation

README

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();

Commit count: 11

cargo fmt