gtin_validate/lib.rs
1//! Validate GTIN-style barcodes, including the commonly-used UPC-A and
2//! EAN-13 codes.
3//!
4//! In addition to validating the correctness of the codes, you can
5//! attempt to automatically repair the most common errors, such as the
6//! removal of leading zeroes by spreadsheet software (because the codes
7//! are sometimes treated as integers) and the removal of whitespace
8//! that can be accidentally introduced during data entry or spreadsheet
9//! conversion.
10
11#![forbid(unsafe_code)]
12
13#[cfg(test)]
14#[macro_use]
15extern crate proptest;
16
17// private modules for internal use
18mod utils;
19
20// public modules
21pub mod gtin12;
22pub mod gtin13;
23pub mod gtin14;
24pub mod gtin8;