# 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"
name = "dpp-domain"
version = "0.2.0"
authors = ["Odal Node <dev@odal-node.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "EU Digital Product Passport domain types, port traits, and open-core boundary"
readme = "README.md"
keywords = [
    "dpp",
    "espr",
    "eu-regulation",
    "ecodesign",
    "sustainability",
]
categories = ["data-structures"]
license = "Apache-2.0"
repository = "https://github.com/odal-node/dpp-core"
resolver = "2"

[features]
test-utils = [
    "sha2",
    "hex",
]

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

[[example]]
name = "create_passport"
path = "examples/create_passport.rs"

[dependencies.async-trait]
version = "0.1"

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

[dependencies.dpp-rules]
version = "0.2.0"

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

[dependencies.semver]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_with]
version = "3"

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

[dependencies.thiserror]
version = "1"

[dependencies.uuid]
version = "1"
features = [
    "v7",
    "serde",
    "js",
]

[dev-dependencies.hex]
version = "0.4"

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

[dev-dependencies.sha2]
version = "0.10"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.jsonschema]
version = "0.17"
