# 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 = "heuropt"
version = "0.5.0"
authors = ["Stephen Waits <steve@waits.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A practical Rust toolkit for heuristic single-, multi-, and many-objective optimization."
homepage = "https://github.com/swaits/heuropt"
documentation = "https://docs.rs/heuropt"
readme = "README.md"
keywords = [
    "optimization",
    "evolutionary",
    "nsga",
    "pareto",
    "moead",
]
categories = [
    "algorithms",
    "science",
    "mathematics",
    "simulation",
]
license = "MIT"
repository = "https://github.com/swaits/heuropt"

[features]
default = []
parallel = ["dep:rayon"]
serde = ["dep:serde"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.rand]
version = "0.9"

[dependencies.rand_distr]
version = "0.5"

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

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dev-dependencies.gungraun]
version = "0.18"

[dev-dependencies.proptest]
version = "1"

[profile.release]
lto = "thin"
codegen-units = 1
