[package]
name = "gfold-core"
version = "0.1.0"
edition = "2021"
description = "G-FOLD convex powered-descent guidance solver"
license = "MIT"
repository = "https://github.com/samutoljamo/g-fold"

[features]
python = ["dep:pyo3"]
wasm = ["dep:tsify", "dep:wasm-bindgen"]

[dependencies]
clarabel = "0.11"
serde = { version = "1", features = ["derive"] }
serde_json = "1"

[dependencies.pyo3]
version = "0.29"
optional = true

[dependencies.tsify]
version = "0.5"
optional = true
features = ["js"]

[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dev-dependencies]
approx = "0.5"
criterion = "0.5"
serde_json = "1"

[[bench]]
name = "solve"
harness = false
