# 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.85"
name = "mk-codec"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Reference implementation of the Mnemonic Key (MK) backup format for engravable BIP 32 xpub backups"
homepage = "https://github.com/bg002h/mnemonic-key"
documentation = "https://docs.rs/mk-codec"
readme = "README.md"
keywords = [
    "bitcoin",
    "bip32",
    "xpub",
    "backup",
    "engraving",
]
categories = [
    "cryptography::cryptocurrencies",
    "encoding",
]
license = "MIT"
repository = "https://github.com/bg002h/mnemonic-key"

[features]
gen-vectors = ["dep:serde_json"]

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

[[bin]]
name = "gen_mk_vectors"
path = "src/bin/gen_mk_vectors.rs"
required-features = ["gen-vectors"]

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

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

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

[dependencies.bech32]
version = "0.11"

[dependencies.bitcoin]
version = "0.32"

[dependencies.getrandom]
version = "0.2"

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.thiserror]
version = "2.0"

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

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

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

[dev-dependencies.strum]
version = "0.26"
features = ["derive"]

[lints.clippy]
all = "warn"

[lints.rust]
missing_docs = "warn"
