[package]
edition = "2021"
rust-version = "1.83"
name = "ledge-core"
version = "0.2.0"
authors = ["The Ledge Authors"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Factor-structured convex QP kernel for portfolio optimization"
homepage = "https://github.com/Jiangki/ledge"
readme = "README.md"
keywords = [
"finance",
"portfolio",
"optimization",
"quadratic-program",
"factor-model",
]
categories = [
"algorithms",
"mathematics",
"science",
]
license = "Apache-2.0"
repository = "https://github.com/Jiangki/ledge"
[features]
bench-internals = []
rayon = ["dep:rayon"]
serde = ["dep:serde"]
[lib]
name = "ledge_core"
path = "src/lib.rs"
[[test]]
name = "batch"
path = "tests/batch.rs"
[[test]]
name = "certificate"
path = "tests/certificate.rs"
[[test]]
name = "generator"
path = "tests/generator.rs"
[[test]]
name = "l1"
path = "tests/l1.rs"
[[test]]
name = "polish"
path = "tests/polish.rs"
[[test]]
name = "portfolio"
path = "tests/portfolio.rs"
[[test]]
name = "proptest_kkt"
path = "tests/proptest_kkt.rs"
[[test]]
name = "scaling"
path = "tests/scaling.rs"
[[test]]
name = "sequence"
path = "tests/sequence.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
required-features = ["serde"]
[[test]]
name = "solver"
path = "tests/solver.rs"
[[test]]
name = "templates"
path = "tests/templates.rs"
[[test]]
name = "tracking"
path = "tests/tracking.rs"
[[test]]
name = "workspace"
path = "tests/workspace.rs"
[[bench]]
name = "solver"
path = "benches/solver.rs"
harness = false
required-features = ["bench-internals"]
[dependencies.rayon]
version = "1"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2"
[dev-dependencies.criterion]
version = "0.7"
[dev-dependencies.postcard]
version = "1"
features = ["use-std"]
[dev-dependencies.proptest]
version = "1.9"
[dev-dependencies.serde_json]
version = "1"
features = ["float_roundtrip"]
[lints.clippy]
cast_precision_loss = "allow"
module_name_repetitions = "allow"
too_many_lines = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"