Git prepares set to force transition to Rust programming language
Briefly

Git prepares set to force transition to Rust programming language
"A series of patches has been published on the Git mailing list, taking the first step towards integrating Rust into the core of the project. Patrick Steinhardt states in his proposal that Rust will become a mandatory part of the build infrastructure starting with Git 3.0. The series is presented as a trial balloon, similar to previous experiments surrounding the introduction of C99 functionality."
"As a first test, the varint.c subsystem has been converted to Rust. This component was deliberately chosen because it is small and independent and has no dependencies. It allows developers to test the interoperability between C and Rust and provides scope for setting up tooling and infrastructure. All existing tests pass with the new implementation, confirming that the basics work. For now, only support via Meson is offered. If the project agrees with the proposed direction, support in traditional Makefiles will follow later."
"According to Steinhardt, several components are still missing at this stage. For example, there is no CI task in place that specifically checks whether Rust builds and works correctly, and there is no tooling available to enforce consistent formatting via cargo format. The intention is to add these elements later, so that the project has a playing field in which further experimentation can take place."
Rust will become a mandatory build dependency starting with Git 3.0. A trial patch series converts the varint.c subsystem to Rust as a first test. The varint.c component is small, independent, and has no dependencies, allowing experiments with C–Rust interoperability and tooling. All existing tests pass with the new implementation. Current build support for the Rust implementation is available only via Meson, with traditional Makefile support planned if the project accepts the direction. Several infrastructure elements are still missing, including a CI task to verify Rust builds and tooling to enforce cargo format. The transition is expected to occur over multiple releases.
Read at Techzine Global
Unable to calculate read time
[
|
]