From 7cc0c9cf6763a5321949db2e59cab9ebf6d99fbb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Dec 2025 21:30:18 +0000 Subject: [PATCH 1/4] Initial plan From e47ca9db1f9b42f699b6abd513b86d3c2179e101 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 01:24:35 +0000 Subject: [PATCH 2/4] Keep ceres-solver-sys on edition 2021 due to cxx 1.0.x incompatibility with edition 2024 Co-authored-by: hombit <1784493+hombit@users.noreply.github.com> --- ceres-solver-sys/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceres-solver-sys/Cargo.toml b/ceres-solver-sys/Cargo.toml index 2f0b09e..bf9a138 100644 --- a/ceres-solver-sys/Cargo.toml +++ b/ceres-solver-sys/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "ceres-solver-sys" version = "0.5.0" -edition = "2024" +edition = "2021" readme = "README.md" description = "Unsafe Rust bindings for the Ceres Solver" repository = "https://github.com/light-curve/ceres-solver-rs" license = "MIT OR Apache-2.0" -rust-version = "1.87.0" +rust-version = "1.67.0" [features] system = ["pkg-config"] From 5d157a12948cf7a9d76399321f2d48f6faa846c8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 01:36:28 +0000 Subject: [PATCH 3/4] Change to edition 2021 for all crates, keep MSRV 1.87 Co-authored-by: hombit <1784493+hombit@users.noreply.github.com> --- Cargo.toml | 2 +- src/solver.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 60c7840..d0288a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ceres-solver" version = "0.5.0" -edition = "2024" +edition = "2021" readme = "README.md" description = "Safe Rust bindings for the Ceres Solver" repository = "https://github.com/light-curve/ceres-solver-rs" diff --git a/src/solver.rs b/src/solver.rs index 13f253f..061ce4e 100644 --- a/src/solver.rs +++ b/src/solver.rs @@ -3,7 +3,7 @@ use crate::error::SolverOptionsBuildingError; use crate::residual_block::ResidualBlockId; -use ceres_solver_sys::cxx::{UniquePtr, let_cxx_string}; +use ceres_solver_sys::cxx::{let_cxx_string, UniquePtr}; use ceres_solver_sys::ffi; pub use ceres_solver_sys::ffi::{ DenseLinearAlgebraLibraryType, DoglegType, DumpFormatType, LineSearchDirectionType, From a01b7ff89a37eb0a7ff84b53b86950f9facdf202 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 03:10:13 +0000 Subject: [PATCH 4/4] Update ceres-solver-sys MSRV to 1.87.0 Co-authored-by: hombit <1784493+hombit@users.noreply.github.com> --- ceres-solver-sys/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceres-solver-sys/Cargo.toml b/ceres-solver-sys/Cargo.toml index bf9a138..e07e772 100644 --- a/ceres-solver-sys/Cargo.toml +++ b/ceres-solver-sys/Cargo.toml @@ -6,7 +6,7 @@ readme = "README.md" description = "Unsafe Rust bindings for the Ceres Solver" repository = "https://github.com/light-curve/ceres-solver-rs" license = "MIT OR Apache-2.0" -rust-version = "1.67.0" +rust-version = "1.87.0" [features] system = ["pkg-config"]