You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build bundled library with Cargo directly, drop CMake (#48)
* Build bundled library with Cargo directly, drop CMake
CMake was only orchestrating Cargo: it ran `cargo build` (build.rs runs
cbindgen to emit the header), applied two textual fix-ups to that header,
and merged static archives. The merge folded in C utility objects this
package never links, and config.h / enum-string codegen are unused here.
Replace the CMake invocation in configure/configure.win with a direct
`cargo build --release`, reproduce the two header fix-ups with sed
(A_M... -> AM_..., USIZE_ -> pointer size via .Machine$sizeof.pointer),
and stage libautomerge_core.a as am-install/lib/libautomerge.a. The
install layout is unchanged, so Makevars need no edits.
Express the bundled-source changes in the tools workflow: patch-sources.sh
now generates Cargo.toml and cbindgen.toml from the upstream cmake/*.in
templates (as CMake's configure_file did) and removes CMakeLists.txt and
cmake/, instead of patching CMakeLists.txt. The obsolete CMakeLists
patches are dropped from patch-rust-msrv.sh and vendor-deps.sh. The
generated TOMLs reproduce the committed ones byte-for-byte.
Drop CMake >= 3.25 from SystemRequirements; Rust (Cargo + rustc >= 1.85)
is now the only build toolchain. Update README, vignette, NEWS, cleanup.
* Update news
0 commit comments