# 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"
name = "get_file_hash"
version = "0.3.2"
authors = ["gnostr admin@gnostr.org"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A utility crate providing a procedural macro to compute and embed file hashes at compile time."
homepage = "https://github.com/gnostr-org/get_file_hash"
readme = "README.md"
license = "MIT"
repository = "https://github.com/gnostr-org/get_file_hash"

[package.metadata.wix]
upgrade-guid = "DED69220-26E3-4406-B564-7F2B58C56F57"
path-guid = "8DB39A25-8B99-4C25-8CF5-4704353C7C6E"
license = false
eula = false

[features]
nostr = [
    "dep:nostr",
    "dep:nostr-sdk",
    "dep:hex",
]

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

[[bin]]
name = "get_file_hash"
path = "src/bin/get_file_hash.rs"

[[bin]]
name = "readme"
path = "src/bin/readme.rs"

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

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

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

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

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

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

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

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

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

[[example]]
name = "roast-experiment"
path = "examples/roast-experiment.rs"

[[example]]
name = "trusted-dealer"
path = "examples/trusted-dealer.rs"

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

[dependencies.frost-secp256k1-tr]
version = "3.0.0-rc.0"

[dependencies.get_file_hash_core]
version = "0.3.2"
features = [
    "nostr",
    "nostr",
]

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

[dependencies.nostr]
version = "0.44.2"
optional = true

[dependencies.nostr-sdk]
version = "0.44.0"
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11.0"

[dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.serial_test]
version = "3.4.0"
features = ["test_logging"]

[build-dependencies.get_file_hash_core]
version = "0.3.2"
features = [
    "nostr",
    "nostr",
]

[build-dependencies.hex]
version = "0.4.2"

[build-dependencies.nostr]
version = "0.44.2"

[build-dependencies.nostr-sdk]
version = "0.44.0"

[build-dependencies.serde_json]
version = "1.0"

[build-dependencies.sha2]
version = "0.11.0"

[build-dependencies.tokio]
version = "1"
features = ["full"]

[profile.dist]
lto = "thin"
inherits = "release"
