ceres-solver-rs

Rust bindings for Ceres Solver

Test pre-commit.ci status docs.rs Crates.io

shell cargo add ceres-solver --features=source

Ceres Solver is a C++ library for large optimization problems. It can be used to solve Non-linear Least Squares problems with constraints and general optimization problems. Here we provide a Rust binding for this library.

The earliest Ceres Solver version tested is 2.0, but the bindings may work with older versions

This project consists of three crates: - ceres-solver is a safe Rust bindings - ceres-solver-sys is an unsafe Rust bindings written with the usage of cxx - ceres-solver-src is an optional no-code crate to build and distribute a minimal static Ceres Solver library

To build Ceres Solver statically and link it to your project, use source Cargo feature, which would add ceres-solver-src dependency into your project. Another Cargo feature is v2_1, which should be used when linked with Ceres Solver 2.1 or newer.

Status of the binding support

Current implementation of the binding is not complete. The following list shows the status of the binding support:

Please don't hesitate to create an issue to request prioritization of any functionality that may have been prioritized.