[package]
edition = "2024"
rust-version = "1.88"
name = "edifact"
version = "0.20.0"
authors = ["hupe1980"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "EDIFACT (ISO 9735) for Rust: zero-copy parser, envelope-computing writer, typed derive, layered validation, DTM dates and CONTRL"
homepage = "https://hupe1980.github.io/edifact/"
documentation = "https://docs.rs/edifact"
readme = "README.md"
keywords = [
"edifact",
"edi",
"iso9735",
"parser",
"unedifact",
]
categories = [
"parser-implementations",
"encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hupe1980/edifact"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["derive"]
derive = ["dep:edifact-derive"]
diagnostics = ["dep:miette"]
dtm = []
dtm-time = [
"dtm",
"dep:time",
]
serde = ["dep:serde"]
[lib]
name = "edifact"
path = "src/lib.rs"
[[example]]
name = "bench_large_message_memory"
path = "examples/bench_large_message_memory.rs"
[[example]]
name = "cookbook_async_tokio_integration"
path = "examples/cookbook_async_tokio_integration.rs"
[[example]]
name = "cookbook_contrl_acknowledgement"
path = "examples/cookbook_contrl_acknowledgement.rs"
[[example]]
name = "cookbook_diagnostics"
path = "examples/cookbook_diagnostics.rs"
[[example]]
name = "cookbook_fixture_validation"
path = "examples/cookbook_fixture_validation.rs"
[[example]]
name = "cookbook_message_window_streaming"
path = "examples/cookbook_message_window_streaming.rs"
required-features = ["derive"]
[[example]]
name = "cookbook_parse_map_validate_write"
path = "examples/cookbook_parse_map_validate_write.rs"
[[example]]
name = "cookbook_profile_error_mapping"
path = "examples/cookbook_profile_error_mapping.rs"
[[example]]
name = "cookbook_profile_packs"
path = "examples/cookbook_profile_packs.rs"
[[example]]
name = "cookbook_streamed_progressive_validation"
path = "examples/cookbook_streamed_progressive_validation.rs"
[[example]]
name = "cookbook_typed_derive"
path = "examples/cookbook_typed_derive.rs"
required-features = ["derive"]
[[example]]
name = "cookbook_typed_streaming"
path = "examples/cookbook_typed_streaming.rs"
required-features = ["derive"]
[[test]]
name = "allocation_budget"
path = "tests/allocation_budget.rs"
[[test]]
name = "bolero_harness"
path = "tests/bolero_harness.rs"
[[test]]
name = "boundary_conditions"
path = "tests/boundary_conditions.rs"
[[test]]
name = "charset"
path = "tests/charset.rs"
[[test]]
name = "composite_derive"
path = "tests/composite_derive.rs"
[[test]]
name = "contrl_locations"
path = "tests/contrl_locations.rs"
[[test]]
name = "contrl_options"
path = "tests/contrl_options.rs"
[[test]]
name = "derive_deserialize_strict"
path = "tests/derive_deserialize_strict.rs"
[[test]]
name = "diagnostics_snapshots"
path = "tests/diagnostics_snapshots.rs"
[[test]]
name = "directory_validator_conformance"
path = "tests/directory_validator_conformance.rs"
[[test]]
name = "docs_api_references"
path = "tests/docs_api_references.rs"
[[test]]
name = "docs_claims"
path = "tests/docs_claims.rs"
[[test]]
name = "dtm_codec"
path = "tests/dtm_codec.rs"
required-features = ["dtm"]
[[test]]
name = "dtm_compare"
path = "tests/dtm_compare.rs"
required-features = ["dtm"]
[[test]]
name = "dtm_mako_parity"
path = "tests/dtm_mako_parity.rs"
required-features = ["dtm-time"]
[[test]]
name = "dtm_validator"
path = "tests/dtm_validator.rs"
required-features = ["dtm"]
[[test]]
name = "envelope_conformance"
path = "tests/envelope_conformance.rs"
[[test]]
name = "error_text"
path = "tests/error_text.rs"
[[test]]
name = "group_validation"
path = "tests/group_validation.rs"
[[test]]
name = "interchange_builder"
path = "tests/interchange_builder.rs"
[[test]]
name = "interchange_header"
path = "tests/interchange_header.rs"
[[test]]
name = "message_builder"
path = "tests/message_builder.rs"
[[test]]
name = "named_element_access"
path = "tests/named_element_access.rs"
[[test]]
name = "parse_path_parity"
path = "tests/parse_path_parity.rs"
[[test]]
name = "profile_packs"
path = "tests/profile_packs.rs"
[[test]]
name = "profile_validation"
path = "tests/profile_validation.rs"
[[test]]
name = "recovering_scan"
path = "tests/recovering_scan.rs"
[[test]]
name = "repetition"
path = "tests/repetition.rs"
[[test]]
name = "resource_limits"
path = "tests/resource_limits.rs"
[[test]]
name = "segment_lookup"
path = "tests/segment_lookup.rs"
[[test]]
name = "service_conformance"
path = "tests/service_conformance.rs"
[[test]]
name = "validation"
path = "tests/validation.rs"
[[test]]
name = "writer_honesty"
path = "tests/writer_honesty.rs"
[[test]]
name = "writer_truncation"
path = "tests/writer_truncation.rs"
[[bench]]
name = "bench_core"
path = "benches/bench_core.rs"
harness = false
[[bench]]
name = "bench_criterion"
path = "benches/bench_criterion.rs"
harness = false
[[bench]]
name = "bench_data"
path = "benches/bench_data.rs"
[dependencies.edifact-derive]
version = "0.20.0"
optional = true
[dependencies.memchr]
version = "2"
[dependencies.miette]
version = "7"
features = ["fancy"]
optional = true
[dependencies.serde]
version = "1"
features = [
"derive",
"rc",
]
optional = true
[dependencies.smallvec]
version = "1"
features = ["union"]
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3.47"
optional = true
default-features = false
[dev-dependencies.bolero]
version = "0.13"
features = ["arbitrary"]
[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.divan]
version = "0.1"
[dev-dependencies.expect-test]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"sync",
"fs",
"io-util",
]