# 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 = "apcn"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Arbitrary Precision Constant Numbers (apcn) calculation written in Rust."
readme = "README.md"
license = "MIT"
repository = "https://github.com/BreezeWhite/apcn-rs"

[features]
cli = ["dep:clap"]
dashu = ["dep:dashu"]
default = [
    "cli",
    "rug",
]
rug = ["dep:rug"]

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

[[bin]]
name = "apcn"
path = "src/main.rs"
required-features = ["cli"]

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

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

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

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

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

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

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

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

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

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

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

[dependencies.clap]
version = "4.6.1"
features = ["derive"]
optional = true

[dependencies.dashu]
version = "0.4.3"
optional = true

[dependencies.rayon]
version = "1.12.0"

[dependencies.rug]
version = "1.30.0"
optional = true

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