# 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 = "adic"
version = "0.5.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Arithmetic and rootfinding for p-adic numbers"
readme = "readme.md"
keywords = [
    "mathematics",
    "modular",
    "number",
    "padic",
]
categories = [
    "mathematics",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://gitlab.com/saplingcalculations/adic"

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

[[example]]
name = "2_adic"
path = "examples/2_adic.rs"

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

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

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

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

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

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

[dependencies.clap]
version = "4.5.20"
features = ["derive"]

[dependencies.itertools]
version = "0.15.0"

[dependencies.machine-factor]
version = "0.2.5"

[dependencies.machine-prime]
version = "1.5.6"

[dependencies.num]
version = "0.4.3"

[dependencies.serde]
version = "1.0.215"
features = ["derive"]
optional = true

[dev-dependencies.assertables]
version = "9.8.2"

[lints.clippy]
assign_op_pattern = "allow"
bool_to_int_with_if = "allow"
let-and-return = "allow"
many_single_char_names = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
redundant-else = "allow"
similar_names = "allow"
used_underscore_items = "allow"

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

[lints.rust]
missing_debug_implementations = "deny"
missing_docs = "deny"
non_upper_case_globals = "allow"
unsafe_code = "forbid"
unused_parens = "allow"

[lints.rustdoc]
redundant_explicit_links = "allow"
