# 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 = "symb_anafis"
version = "0.6.0"
authors = ["CokieMiner"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast symbolic differentiation library for Rust"
readme = "README.md"
keywords = [
    "symbolic",
    "differentiation",
    "calculus",
    "mathematics",
    "derivatives",
]
categories = [
    "mathematics",
    "science",
]
license = "Apache-2.0"
repository = "https://github.com/CokieMiner/SymbAnaFis"

[features]
default = []
parallel = ["rayon"]
python = [
    "pyo3",
    "numpy",
]

[lib]
name = "symb_anafis"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

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

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

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

[[bench]]
name = "benchmark_parallel"
path = "benches/rust/benchmark_parallel.rs"
harness = false
required-features = ["parallel"]

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

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

[dependencies.num-traits]
version = "0.2.19"

[dependencies.numpy]
version = "0.27.1"
optional = true

[dependencies.pyo3]
version = "0.27.2"
features = ["extension-module"]
optional = true

[dependencies.rayon]
version = "1.11.0"
optional = true

[dependencies.wide]
version = "1.1.1"

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

[dev-dependencies.dotenvy]
version = "0.15"

[dev-dependencies.quickcheck]
version = "1.0.3"

[dev-dependencies.symbolica]
version = "1.2.1"

[lints.clippy]
all = "deny"
clone_on_ref_ptr = "warn"
create_dir = "warn"
dbg_macro = "deny"
debug_assert_with_mut_call = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
filetype_is_file = "warn"
fn_to_numeric_cast = "warn"
format_push_string = "warn"
get_unwrap = "warn"
if_then_some_else_none = "warn"
imprecise_flops = "deny"
inline_asm_x86_att_syntax = "warn"
inline_asm_x86_intel_syntax = "warn"
integer_division = "warn"
large_include_file = "warn"
large_stack_arrays = "deny"
let_underscore_must_use = "warn"
lossy_float_literal = "deny"
map_err_ignore = "warn"
mem_forget = "warn"
missing_panics_doc = "warn"
mixed_read_write_in_expression = "warn"
mutex_atomic = "deny"
non_ascii_literal = "warn"
panic = "deny"
panic_in_result_fn = "deny"
partial_pub_fields = "warn"
perf = "deny"
print_stderr = "warn"
print_stdout = "deny"
pub_without_shorthand = "warn"
rc_buffer = "deny"
rc_mutex = "warn"
redundant_type_annotations = "warn"
rest_pat_in_fully_bound_structs = "warn"
same_name_method = "warn"
self_named_module_files = "warn"
semicolon_inside_block = "warn"
single_char_lifetime_names = "warn"
str_to_string = "warn"
string_add = "warn"
string_slice = "warn"
suboptimal_flops = "deny"
suspicious_xor_used_as_pow = "warn"
todo = "deny"
try_err = "warn"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unnecessary_self_imports = "warn"
unneeded_field_pattern = "warn"
unreachable = "deny"
unseparated_literal_suffix = "warn"
unwrap_used = "deny"
use_debug = "warn"
verbose_file_reads = "warn"

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

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

[lints.rust]
let_underscore_drop = "deny"
missing_docs = "deny"
unsafe_code = "deny"

[lints.rustdoc]
broken_intra_doc_links = "deny"
