oxfordcontrol / Clarabel.rs

Clarabel.rs: Interior-point solver for convex conic optimisation problems in Rust.
Apache License 2.0
319 stars 26 forks source link

Fix compilation failure without "serde" feature #131

Open cbbowen opened 6 days ago

cbbowen commented 6 days ago

Compilation currently fails without the "serde" feature enabled because the use of #[serde(...)] isn't conditioned on the feature being enabled. This PR uses cfg_attr to do so similar to the Serialize and Deserialize derives.

CLAassistant commented 6 days ago

CLA assistant check
All committers have signed the CLA.