# 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 = "atria-rs"
version = "1.3.0"
authors = ["Joseph R. Quinn <423821+quinnjr@users.noreply.github.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library for running the Ablatio Triadum (ATria) centrality algorithm (Cickovski et al, 2015, 2017)."
readme = "README.md"
keywords = [
    "centrality",
    "graph",
    "algorithm",
    "bioinformatics",
    "pluma",
]
license = "MIT"
repository = "https://github.com/quinnjr/ATria-rs"

[features]
cuda = ["cudarc"]
default = []
gpu = [
    "wgpu",
    "pollster",
    "bytemuck",
]

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

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

[dependencies.bytemuck]
version = "1.16"
features = ["derive"]
optional = true

[dependencies.cpp]
version = "0.5.5"

[dependencies.csv]
version = "1.1.3"

[dependencies.cudarc]
version = "0.12"
optional = true

[dependencies.libm]
version = "0.2.1"

[dependencies.log]
version = "0.4.11"

[dependencies.pluma-plugin-trait]
version = "1.1"

[dependencies.pollster]
version = "0.3"
optional = true

[dependencies.rayon]
version = "1.4.1"

[dependencies.serde]
version = "1.0.116"

[dependencies.wgpu]
version = "0.20"
optional = true

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

[build-dependencies.cpp_build]
version = "0.5"

[profile.release]
opt-level = 3
lto = true
panic = "abort"
