epcis-translate
High-performance, zero-allocation bidirectional translators for GS1 identifiers (SGTIN, SSCC, SGLN, GRAI, GIAI) between EPC URN and GS1 Digital Link path formats.
Features
- Zero-Allocation Parsing: Leverages lifetime-bound string slices (
&'a str) to prevent heap allocation during parser operations. - Check-Digit Verification: Includes built-in Luhn checksum calculations for GS1 identifiers.
- Complete Bidirectional Translations: Converts both to and from EPC URN and GS1 Digital Link formats.
Quick Start
use Sgtin;
Supported Translators
- SGTIN (Serialized Global Trade Item Number)
- SSCC (Serial Shipping Container Code)
- SGLN (Global Location Number)
- GRAI (Global Returnable Asset Identifier)
- GIAI (Global Individual Asset Identifier)
License
Licensed under either of Apache-2.0 or MIT.