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

[features]
default = ["encoding"]
encoding = ["holo_hash/encoding"]
fixturators = [
    "holochain_zome_types/fixturators",
    "holo_hash/fixturators",
]
fuzzing = [
    "holochain_zome_types/fuzzing",
    "holo_hash/fuzzing",
]
mock = ["dep:mockall"]
properties = ["holochain_zome_types/properties"]
test_utils = [
    "fixturators",
    "hdi/test_utils",
    "holo_hash/test_utils",
]
unstable-countersigning = ["holochain_zome_types/unstable-countersigning"]
unstable-functions = [
    "holochain_zome_types/unstable-functions",
    "hdi/unstable-functions",
]

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

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

[dependencies.hdi]
version = "=0.8.0-dev.14"
features = ["trace"]

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

[dependencies.holo_hash]
version = "^0.7.0-dev.10"

[dependencies.holochain_wasmer_guest]
version = "=0.0.103"

[dependencies.holochain_zome_types]
version = "^0.7.0-dev.19"
default-features = false

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

[dependencies.paste]
version = "1.0"

[dependencies.serde]
version = "1.0"

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.trybuild]
version = "1.0"

[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)",
]
