# 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 = "clock-bigint"
version = "1.0.0"
authors = ["ClockinChain Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Deterministic constant-time big integers for blockchain consensus engines"
documentation = "https://docs.rs/clock-bigint"
readme = "README.md"
keywords = [
    "bigint",
    "blockchain",
    "cryptography",
    "consensus",
    "montgomery",
]
categories = [
    "cryptography",
    "algorithms",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Olyntar-Labs/clock-bigint"

[features]
alloc = []
clockinchain = []
default = ["alloc"]
fuzz = []
serde = ["dep:serde"]
std = ["alloc"]
zk = []

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

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

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

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

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

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

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

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

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

[[bench]]
name = "division"
path = "benches/division.rs"

[[bench]]
name = "gas"
path = "benches/gas.rs"

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

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

[[bench]]
name = "timeboxed"
path = "benches/timeboxed.rs"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
default-features = false

[dev-dependencies.cargo-fuzz]
version = "0.13.1"

[dev-dependencies.clock-rand]
version = "1.0.1"

[dev-dependencies.criterion]
version = "0.8.1"
features = ["html_reports"]

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

[dev-dependencies.proptest]
version = "1.5"

[lints.clippy]
all = "warn"
cargo = "warn"
complexity = "warn"
correctness = "warn"
nursery = "warn"
pedantic = "warn"
perf = "warn"
style = "warn"
suspicious = "warn"

[lints.rust]
missing_docs = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused = "warn"
