# 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 = "2021"
rust-version = "1.75.0"
name = "mx20022-translate"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bidirectional MT to MX translation for ISO 20022 messages"
readme = false
keywords = [
    "iso20022",
    "swift",
    "payments",
    "financial",
    "xml",
]
categories = [
    "finance",
    "parser-implementations",
    "encoding",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/socrates8300/mx20022"

[lib]
name = "mx20022_translate"
path = "src/lib.rs"

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

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

[[bench]]
name = "translate_bench"
path = "benches/translate_bench.rs"
harness = false

[dependencies.mx20022-model]
version = "0.1.0"
features = ["camt"]

[dependencies.mx20022-parse]
version = "0.1.0"

[dependencies.regex]
version = "1"

[dependencies.thiserror]
version = "2"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.pretty_assertions]
version = "1"

[lints.clippy]
missing_errors_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "forbid"
