| Crates.io | zugferd-code-lists |
| lib.rs | zugferd-code-lists |
| version | 0.1.19 |
| created_at | 2025-03-05 01:02:18.342303+00 |
| updated_at | 2025-12-08 00:24:03.94268+00 |
| description | ZUGFeRD code lists, e.g. languages enum, currencies enum, countries enum, etc. |
| homepage | https://github.com/hydrogen602/zugferd-code-lists |
| repository | https://github.com/hydrogen602/zugferd-code-lists |
| max_upload_size | |
| id | 1577993 |
| size | 3,693,530 |
This project takes the many code lists that are part of the ZUGFeRD specification and converts them into rust and typescript enums for use in other projects.
This project is in no way or form affiliated with the official ZUGFeRD project.
Versions supported:
TryFrom impls for conversion to and from the crates iso_currency and iso_countryNA would be rendered as nan in the generated codeFiscal ID list (new in ZUGFeRD 2.3.3)Debug, Display, and Error traits for generated errors for TryFrom for iso_currency and iso_countryCode and Description to consider the fact that all code lists are Copy and all strings returned live for 'static. This should make the API more flexible as previously there was a lifetime dependence between a code value and the &str returned by Code::codeserde supportspecta supportFromStr and Display trait implsFromStr more informative with thiserror.2.3.3 lists were not being exported in ts.TryFrom impls for conversion between a version and its previous versionTryFrom impls for conversion between versions - doneSee the ZUGFeRD spec files readme for instructions on how to add a new ZUGFeRD specification files.
Then add the version to the Version enum in py_generate/common.py and run make gen to generate the definitions.