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 = "2021"
name = "hdi"
version = "0.8.0-dev.6"
authors = ["Holochain Core Dev Team <devcore@holochain.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The HDI"
documentation = "https://docs.rs/hdi"
readme = "README.md"
keywords = [
    "holochain",
    "holo",
    "integrity",
]
categories = ["cryptography"]
license = "CAL-1.0"
repository = "https://github.com/holochain/holochain/tree/develop/crates/hdi"

[features]
default = []
fuzzing = ["holochain_integrity_types/fuzzing"]
mock = ["dep:mockall"]
test_utils = [
    "holochain_integrity_types/fuzzing",
    "holochain_integrity_types/test_utils",
]
trace = [
    "dep:tracing",
    "dep:tracing-core",
    "holochain_integrity_types/tracing",
]
unstable-functions = []

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

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

[dependencies.hdk_derive]
version = "^0.7.0-dev.6"

[dependencies.holo_hash]
version = "^0.7.0-dev.5"
features = ["hashing"]

[dependencies.holochain_integrity_types]
version = "^0.7.0-dev.6"
default-features = false

[dependencies.holochain_serialized_bytes]
version = "=0.0.56"

[dependencies.holochain_serialized_bytes_derive]
version = "=0.0.56"

[dependencies.holochain_wasmer_guest]
version = "=0.0.101"

[dependencies.mockall]
version = "0.13"
optional = true

[dependencies.paste]
version = "1.0"

[dependencies.serde]
version = "1.0"

[dependencies.serde_bytes]
version = "0.11"

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.tracing-core]
version = "0.1"
optional = true

[dev-dependencies.test-case]
version = "3.3"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.getrandom]
version = "0.3"

[lints.clippy]
complexity = "deny"
correctness = "deny"
dbg_macro = "deny"
perf = "deny"
style = "deny"

[lints.clippy.cargo]
level = "allow"
priority = -1

[lints.clippy.nursery]
level = "allow"
priority = -1

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

[lints.clippy.restriction]
level = "allow"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(build_wasm)",
    "cfg(loom)",
]