# 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 = "chia-bls"
version = "0.20.0"
authors = ["Arvid Norberg <arvid@chia.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "BLS signature, verification and aggregation functions for the Chia blockchain"
homepage = "https://github.com/Chia-Network/chia_rs"
readme = false
license = "Apache-2.0"
repository = "https://github.com/Chia-Network/chia_rs"

[lib]
name = "chia_bls"
crate-type = ["rlib"]
path = "src/lib.rs"
bench = false

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

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

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

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

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

[dependencies.arbitrary]
version = "1.4.1"
optional = true

[dependencies.blst]
version = "0.3.12"
features = ["portable"]

[dependencies.chia-serde]
version = "0.20.0"
optional = true

[dependencies.chia-sha2]
version = "0.20.0"

[dependencies.chia-traits]
version = "0.20.0"

[dependencies.chia_py_streamable_macro]
version = "0.20.0"
optional = true

[dependencies.hex]
version = "0.4.3"

[dependencies.hkdf]
version = "0.12.0"

[dependencies.linked-hash-map]
version = "0.5.6"

[dependencies.pyo3]
version = "0.23.4"
features = ["multiple-pymethods"]
optional = true

[dependencies.serde]
version = "1.0.217"
optional = true

[dependencies.sha2]
version = "0.10.8"

[dependencies.thiserror]
version = "1.0.69"

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

[dev-dependencies.rand]
version = "0.8.5"

[dev-dependencies.rstest]
version = "0.22.0"

[features]
arbitrary = ["dep:arbitrary"]
py-bindings = [
    "dep:pyo3",
    "dep:chia_py_streamable_macro",
    "chia-traits/py-bindings",
]
serde = [
    "dep:serde",
    "dep:chia-serde",
]

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
implicit_hasher = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
similar_names = "allow"
too_many_lines = "allow"
wildcard_imports = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

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

[lints.rust]
dead_code = "deny"
deprecated = "deny"
deprecated_in_future = "deny"
non_ascii_idents = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unreachable_code = "deny"
unreachable_patterns = "deny"
unsafe_code = "deny"
unused_import_braces = "deny"
unused_imports = "warn"

[lints.rust.future_incompatible]
level = "deny"
priority = -1

[lints.rust.nonstandard_style]
level = "deny"
priority = -1

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rust.rust_2021_compatibility]
level = "deny"
priority = -1
