# 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 = "2021"
name = "kifmm"
version = "1.0.2"
authors = ["Srinath Kailasa <srinathkailasa@gmail.com>"]
build = "build.rs"
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Kernel-independent fast multipole method"
homepage = "https://github.com/bempp/kifmm"
readme = "README.md"
keywords = ["numerics"]
categories = [
    "mathematics",
    "science",
]
license = "BSD-3-Clause"
repository = "https://github.com/bempp/kifmm"

[package.metadata.docs.rs]
cargo-args = [
    "-Zunstable-options",
    "-Zrustdoc-scrape-examples",
]
rustdoc-args = [
    "--html-in-header",
    "./src/docs-header.html",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bytemuck]
version = "1.16.0"

[dependencies.green-kernels]
version = "0.2.0"

[dependencies.itertools]
version = "0.13.*"

[dependencies.kifmm-fftw-sys]
version = "0.2.0"

[dependencies.lazy_static]
version = "1.4.0"

[dependencies.memoffset]
version = "0.9.1"
optional = true

[dependencies.mpi]
version = "0.8.*"
optional = true

[dependencies.num]
version = "0.4"

[dependencies.num-complex]
version = "0.4.5"

[dependencies.pulp]
version = "0.18.12"

[dependencies.rand]
version = "0.8.5"

[dependencies.rand_distr]
version = "0.4.3"

[dependencies.rayon]
version = "1.9"

[dependencies.rlst]
version = "0.2.0"

[dependencies.superslice]
version = "1.0.0"
optional = true

[dev-dependencies.approx]
version = "0.5"

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

[build-dependencies.cbindgen]
version = "0.26.0"

[features]
mpi = [
    "dep:mpi",
    "dep:superslice",
    "dep:memoffset",
]
strict = []

[lints.clippy]
wildcard_imports = "forbid"
