hl7v2 1.5.0

HL7 v2 message parser and processor for Rust
Documentation
# 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.95"
name = "hl7v2"
version = "1.5.0"
authors = ["EffortlessMetrics <team@effortlessmetrics.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HL7 v2 message parser and processor for Rust"
homepage = "https://github.com/EffortlessMetrics/hl7v2-rs"
documentation = "https://docs.rs/hl7v2"
readme = "README.md"
keywords = [
    "hl7",
    "healthcare",
    "parser",
    "validator",
]
categories = [
    "parser-implementations",
    "encoding",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/EffortlessMetrics/hl7v2-rs"
resolver = "2"

[features]
ack = ["dep:chrono"]
batch = []
default = [
    "json",
    "profile",
    "ack",
    "normalize",
]
experimental-guard = []
json = []
lifecycle = [
    "dep:chrono",
    "dep:sha2",
]
network = [
    "stream",
    "dep:tokio-util",
    "dep:futures",
    "dep:bytes",
]
normalize = []
persistent-cache = [
    "profile-core",
    "dep:sqlx",
    "dep:sha2",
    "dep:hex",
]
profile = [
    "profile-core",
    "persistent-cache",
]
profile-core = [
    "dep:chrono",
    "dep:serde_yaml",
    "dep:regex",
    "dep:tokio",
    "dep:reqwest",
    "dep:lru",
    "dep:async-lock",
]
redact = [
    "dep:sha2",
    "dep:toml",
]
stream = ["dep:tokio"]
synthetic = [
    "ack",
    "dep:chrono",
    "dep:rand",
    "dep:rand_distr",
    "dep:serde_yaml",
    "dep:sha2",
    "dep:uuid",
]

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

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

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

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

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

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

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

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

[dependencies.async-lock]
version = "3.4"
optional = true

[dependencies.bytes]
version = "1.11.1"
optional = true

[dependencies.chrono]
version = "0.4"
features = [
    "serde",
    "serde",
]
optional = true

[dependencies.futures]
version = "0.3.32"
optional = true

[dependencies.hex]
version = "0.4.3"
optional = true

[dependencies.lru]
version = "0.16"
optional = true

[dependencies.rand]
version = "0.10.0"
optional = true

[dependencies.rand_distr]
version = "0.6.0"
optional = true

[dependencies.regex]
version = "1.10"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls-webpki-roots",
    "http2",
]
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "derive",
]

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.10.0"
optional = true
package = "serde_yaml_ng"

[dependencies.sha2]
version = "0.10.9"
optional = true

[dependencies.sqlx]
version = "0.8.6"
features = [
    "runtime-tokio",
    "postgres",
    "chrono",
    "migrate",
]
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.50"
features = [
    "full",
    "fs",
    "net",
    "io-util",
    "time",
    "macros",
    "rt",
    "sync",
]
optional = true

[dependencies.tokio-util]
version = "0.7.18"
features = ["codec"]
optional = true

[dependencies.toml]
version = "1.1.2"
optional = true

[dependencies.uuid]
version = "1.12.1"
features = ["v4"]
optional = true

[dev-dependencies.proptest]
version = "1.6"

[dev-dependencies.tempfile]
version = "3.26.0"

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
arc_with_non_send_sync = "deny"
arithmetic_side_effects = "warn"
assertions_on_result_states = "deny"
await_holding_invalid_type = "deny"
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
blanket_clippy_restriction_lints = "deny"
cast_abs_to_unsigned = "deny"
cast_enum_truncation = "deny"
cast_nan_to_int = "deny"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "deny"
char_indices_as_byte_indices = "deny"
cloned_instead_of_copied = "warn"
dbg_macro = "deny"
decimal_bitwise_operands = "warn"
drop_non_drop = "deny"
duration_suboptimal_units = "warn"
error_impl_error = "deny"
exit = "deny"
expect_used = "deny"
expl_impl_clone_on_copy = "deny"
fallible_impl_from = "deny"
filter_map_next = "warn"
flat_map_option = "warn"
float_cmp = "deny"
float_cmp_const = "deny"
float_equality_without_abs = "deny"
forget_non_drop = "deny"
format_in_format_args = "deny"
future_not_send = "warn"
get_unwrap = "deny"
ignore_without_reason = "deny"
index_refutable_slice = "deny"
indexing_slicing = "deny"
ineffective_open_options = "deny"
infallible_try_from = "deny"
invalid_upcast_comparisons = "deny"
iter_cloned_collect = "warn"
iter_not_returning_iterator = "deny"
iter_overeager_cloned = "warn"
join_absolute_paths = "deny"
large_futures = "warn"
let_underscore_future = "deny"
let_underscore_lock = "deny"
let_underscore_must_use = "deny"
lines_filter_map_ok = "deny"
lossy_float_literal = "deny"
manual_checked_ops = "warn"
manual_div_ceil = "warn"
manual_ilog2 = "warn"
manual_is_multiple_of = "warn"
manual_is_variant_and = "warn"
manual_let_else = "warn"
manual_midpoint = "warn"
manual_ok_or = "warn"
manual_split_once = "warn"
manual_strip = "warn"
manual_take = "warn"
map_err_ignore = "deny"
match_result_ok = "deny"
mem_forget = "deny"
missing_errors_doc = "warn"
missing_panics_doc = "deny"
multiple_unsafe_ops_per_block = "deny"
mut_mutex_lock = "deny"
needless_collect = "warn"
needless_type_cast = "warn"
nonsensical_open_options = "deny"
out_of_bounds_indexing = "deny"
panic = "deny"
panic_in_result_fn = "deny"
path_buf_push_overwrite = "deny"
rc_mutex = "deny"
read_line_without_trim = "warn"
readonly_write_lock = "deny"
redundant_closure = "warn"
redundant_closure_for_method_calls = "warn"
repr_packed_without_abi = "deny"
result_large_err = "warn"
result_unit_err = "warn"
same_length_and_capacity = "deny"
should_panic_without_expect = "deny"
sliced_string_as_bytes = "deny"
string_slice = "deny"
suspicious_open_options = "deny"
to_string_in_format_args = "deny"
todo = "deny"
unchecked_time_subtraction = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
uninlined_format_args = "warn"
unnecessary_debug_formatting = "warn"
unnecessary_trailing_comma = "warn"
unreachable = "deny"
unused_format_specs = "deny"
unused_result_ok = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"

[lints.rust]
const_item_interior_mutations = "deny"
function_casts_as_integer = "deny"
unexpected_cfgs = "warn"
unsafe_code = "forbid"
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"
unused_visibilities = "warn"