# 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"
rust-version = "1.92"
name = "krusty-kms-sdk"
version = "0.4.0"
authors = ["Krusty KMS Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tongo confidential account and proof-operation flows for krusty-kms"
homepage = "https://github.com/starknet-innovation/kms"
readme = false
keywords = [
    "cryptography",
    "kms",
    "starknet",
    "encryption",
]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/starknet-innovation/kms"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]

[features]
default = ["parallel"]
parallel = [
    "rayon",
    "krusty-kms-crypto/parallel",
    "krusty-kms/parallel",
]

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

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

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

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

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

[[bench]]
name = "operations"
path = "benches/operations.rs"
harness = false

[[bench]]
name = "transfer_throughput"
path = "benches/transfer_throughput.rs"
harness = false

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.hex]
version = "0.4.3"

[dependencies.krusty-kms]
version = "0.4.0"
default-features = false

[dependencies.krusty-kms-common]
version = "0.4.0"

[dependencies.krusty-kms-crypto]
version = "0.4.0"
default-features = false

[dependencies.rand]
version = "0.8.5"

[dependencies.rayon]
version = "1.10.0"
optional = true

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

[dependencies.serde_json]
version = "1.0.138"

[dependencies.sha2]
version = "0.10.8"

[dependencies.starknet-types-core]
version = "0.2.0"
features = ["hash"]

[dependencies.thiserror]
version = "1.0.69"

[dev-dependencies.criterion]
version = "0.5.1"

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

[lints.clippy]
borrow_as_ptr = "deny"
dbg_macro = "deny"
todo = "deny"
