7 unstable releases
0.4.1 | Jan 28, 2025 |
---|---|
0.4.0 | Oct 9, 2023 |
0.3.2 | Feb 3, 2023 |
0.3.1 | Jan 31, 2023 |
0.1.0 | Nov 19, 2022 |
#363 in Data structures
237 downloads per month
Used in 2 crates
745KB
10K
SLoC
Edifact-types
This library provides bindings for the Edifact standard.
Usage
The types should be used inconjuction with a Edifact serializer.
We do recommend the serde_edifact
crate, since we are using this serializer for testing.
So far, there is also no validation attached to the structs.
features
- logging: enables log library
caveats
- repetition limitations are not implemented yet, we only differ
- Mandatory (1), Optional (0/1), Vector (0-infinity)
- Not all lists are implemented for the types, validation is incomplete
- UNA, for changing control chars is ignored
- Grouped Messages with UNG/UNE are not implemented yet
Supported Bindings
- d95b
- coprar
- d00b
- coparn
- iftmin
- iftsta
Something missing? Please open an issue.
Contributions
Since the Edifact is fairly huge, we only implement types on demand. So if you are missing some types, please open an issue or merge request.
new type
This is only usable by copiing the content from UNECE, it will not work with anything else!
- go to
src/util/mod.rs
and findfs::write
, comment in all the lines - find your type on the UNECE Website
- ctrl+a on the website and paste into
edi_desc/<version>/<your-type>
- run
cargo nextest run desc
- see new file under
src/<version>/message/
Dependencies
~1.1–1.9MB
~38K SLoC