eindir-core 0.6.0

Typed primitives for ND objective functions and bounded sampling.
Documentation
# 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.88"
name = "eindir-core"
version = "0.6.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed primitives for ND objective functions and bounded sampling."
readme = "README.md"
keywords = [
    "optimization",
    "objective-function",
    "sampling",
]
categories = [
    "science",
    "mathematics",
]
license = "MIT"
repository = "https://github.com/HaoZeke/eindir"

[package.metadata.capi]
min_version = "0.10.17"

[package.metadata.capi.header]
name = "eindir-core.h"
subdirectory = ""
generation = true
enabled = true
emit_version_constants = false

[package.metadata.capi.pkg_config]
name = "eindir-core"
filename = "eindir-core"
description = "ND objective function and sampling primitives"

[package.metadata.capi.library]
name = "eindir_core"

[[package.metadata.capi.install.include.asset]]
from = "include/eindir-core.hpp"
to = "."

[features]
autodiff = [
    "dep:num-dual",
    "dep:nalgebra",
]
capi = []
default = []
py-objective = [
    "dep:pyo3",
    "dep:numpy",
    "dlpk/pyo3",
]
python = ["py-objective"]

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

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

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

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

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

[dependencies.dlpk]
version = "0.1.5"
features = [
    "ndarray",
    "half",
]

[dependencies.nalgebra]
version = "0.34"
optional = true

[dependencies.ndarray]
version = "0.17"

[dependencies.num-dual]
version = "0.13"
optional = true

[dependencies.num-traits]
version = "0.2"

[dependencies.numpy]
version = "0.26"
optional = true

[dependencies.pyo3]
version = "0.26"
features = [
    "extension-module",
    "abi3-py310",
]
optional = true

[dependencies.rand]
version = "0.9"

[dependencies.rand_distr]
version = "0.5"

[dependencies.rayon]
version = "1.10"

[dependencies.thiserror]
version = "2"

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

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

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

[profile.dist]
lto = "thin"
inherits = "release"