epcis-hash 0.1.4

Deterministic SHA-256 canonical hashing implementation for GS1 EPCIS 2.0 events.
# 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.96.1"
name = "epcis-hash"
version = "0.1.4"
authors = ["Duma Mtungwa <duma@matangaresearch.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Deterministic SHA-256 canonical hashing implementation for GS1 EPCIS 2.0 events."
documentation = "https://docs.rs/epcis-hash"
readme = "README.md"
keywords = [
    "epcis",
    "gs1",
    "hash",
    "sha256",
    "canonicalization",
]
categories = [
    "encoding",
    "cryptography",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/MATANGAresearch/epcis-sdk"
resolver = "2"

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

[features]
wasm = ["dep:wasm-bindgen"]

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

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

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

[dependencies.chrono]
version = "0.4.45"
features = ["serde"]

[dependencies.epcis-models]
version = "0.1.4"

[dependencies.quick-xml]
version = "0.41.0"
features = ["serialize"]

[dependencies.regex]
version = "1.12.4"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.150"
features = ["preserve_order"]

[dependencies.sha2]
version = "0.11.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.wasm-bindgen]
version = "0.2.126"
optional = true

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.epcis-translate]
version = "0.1.4"