# 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"
rust-version = "1.85"
name = "bridgestan"
version = "2.8.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust interface for BridgeStan"
homepage = "https://roualdes.us/bridgestan/latest/"
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/roualdes/bridgestan"

[package.metadata.docs.rs]
all-features = true

[features]
download-bridgestan-src = [
    "dep:ureq",
    "dep:tar",
    "dep:flate2",
    "dep:dirs",
]

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

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

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

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

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

[dependencies.dirs]
version = "6.0"
optional = true

[dependencies.flate2]
version = "1.0"
optional = true

[dependencies.libloading]
version = "0.8.0"

[dependencies.log]
version = "0.4"

[dependencies.path-absolutize]
version = "3.1"

[dependencies.tar]
version = "0.4"
optional = true

[dependencies.thiserror]
version = "2.0.3"

[dependencies.ureq]
version = "3.0"
optional = true

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

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.rand]
version = "0.10.0"

[build-dependencies.bindgen]
version = "0.72.0"
