buntine / barcoders

A barcode encoding library for the Rust programming language
Apache License 2.0
166 stars 24 forks source link

Check the checksum digit if provided. #26

Closed bbirec closed 7 months ago

bbirec commented 1 year ago

https://github.com/buntine/barcoders/issues/23

If the checksum digit(13th for EAN13, 8th for EAN8) is provided, it should be used only for validation.

I'm not familiar with Rust, so please advise if there's errors.