# 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 = "scirs2-optimize"
version = "0.4.3"
authors = ["COOLJAPAN OU (Team KitaSan)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Optimization module for SciRS2 (scirs2-optimize)"
readme = "README.md"
keywords = [
    "optimization",
    "minimize",
    "scientific",
    "scipy",
    "numerical",
]
categories = [
    "science",
    "mathematics",
    "algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/scirs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
async = [
    "tokio",
    "futures",
]
default = ["parallel"]
parallel = ["scirs2-core/parallel"]
python = ["scirs2-core/python"]

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

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

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

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

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

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

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

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

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

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

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

[dependencies.argmin]
version = "0.11.0"
default-features = false

[dependencies.futures]
version = "0.3.32"
optional = true

[dependencies.scirs2-core]
version = "0.4.3"
features = [
    "simd",
    "parallel",
    "linalg",
    "gpu",
    "random",
    "array",
]
default-features = false

[dependencies.scirs2-linalg]
version = "0.4.3"
default-features = false

[dependencies.scirs2-sparse]
version = "0.4.3"

[dependencies.scirs2-stats]
version = "0.4.3"
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.statrs]
version = "0.18.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.52.1"
features = ["full"]
optional = true

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

[dev-dependencies.chrono]
version = "0.4.44"
features = ["serde"]

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

[dev-dependencies.serde]
version = "1.0"
features = [
    "derive",
    "derive",
]

[dev-dependencies.serde_json]
version = "1.0"

[lints.clippy]
expect_used = "allow"
len_zero = "allow"
unwrap_used = "warn"

[lints.rust]
dead_code = "allow"
mismatched_lifetime_syntaxes = "allow"
unknown_lints = "allow"
unpredictable_function_pointer_comparisons = "allow"
unused_imports = "allow"
unused_mut = "allow"
unused_variables = "allow"
