# 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 = "p3-koala-bear"
version = "0.4.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An implementation of the Koalabear prime field F_p, where p = 2^31 - 2^24 + 1."
homepage = "https://github.com/Plonky3/Plonky3"
readme = false
keywords = [
    "cryptography",
    "SNARK",
    "PLONK",
    "FRI",
    "plonky3",
]
categories = ["cryptography::cryptocurrencies"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Plonky3/Plonky3"
resolver = "2"

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

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

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

[dependencies.p3-challenger]
version = "0.4.2"

[dependencies.p3-field]
version = "0.4.2"

[dependencies.p3-monty-31]
version = "0.4.2"

[dependencies.p3-poseidon2]
version = "0.4.2"

[dependencies.p3-symmetric]
version = "0.4.2"

[dependencies.rand]
version = "0.9.0"
features = ["small_rng"]
default-features = false

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

[dev-dependencies.num-bigint]
version = "0.4.3"
default-features = false

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

[dev-dependencies.rand]
version = "0.9.0"
features = ["small_rng"]
default-features = false

[dev-dependencies.rand_xoshiro]
version = "0.7.0"

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

[lints.clippy]
cognitive_complexity = "allow"
match_bool = "warn"
needless_pass_by_value = "warn"
redundant_pub_crate = "allow"
semicolon_if_nothing_returned = "warn"
too_long_first_doc_paragraph = "allow"
transmute_undefined_repr = "allow"
tuple_array_conversions = "allow"
unused_peekable = "allow"

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

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

[lints.rust]
rust_2024_incompatible_pat = "warn"
unused_must_use = "deny"

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

[lints.rustdoc]
all = "warn"
