# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "edifact-rs"
version = "0.9.1"
authors = ["hupe1980"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-copy EDIFACT parser, writer, serde traits, and extensible validation support"
homepage = "https://github.com/hupe1980/edifact-rs"
documentation = "https://docs.rs/edifact-rs"
readme = "README.md"
keywords = [
    "edifact",
    "edi",
    "parser",
    "serde",
    "unedifact",
]
categories = [
    "parser-implementations",
    "encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hupe1980/edifact-rs"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["derive"]
derive = ["dep:edifact-rs-derive"]
diagnostics = ["dep:miette"]
serde = ["dep:serde"]

[lib]
name = "edifact_rs"
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_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 = "bolero_harness"
path = "tests/bolero_harness.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 = "group_validation"
path = "tests/group_validation.rs"

[[test]]
name = "profile_packs"
path = "tests/profile_packs.rs"

[[test]]
name = "profile_validation"
path = "tests/profile_validation.rs"

[[test]]
name = "validation"
path = "tests/validation.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-rs-derive]
version = "0.9.1"
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"

[dev-dependencies.bolero]
version = "0.13"
features = ["arbitrary"]

[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.divan]
version = "0.1"

[dev-dependencies.expect-test]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
    "sync",
]
