Request for Review: gcode v0.7.0-rc.1
⚓ Rust 📅 2026-03-17 👤 surdeus 👁️ 2I've been spending the last couple days giving the gcode crate a bit of well-deserved TLC and was hoping to get some feedback on my release candidate before publishing the 0.7.0 version.
For a bit of context, g-code is the programming language that most CNC machines (3D printers, routers, mills, etc.) use to control the machine. While it is technically defined as NIST RS274, implementors have added their own extensions and dialects over time, making the whole thing a bit of a mess.
To side-step the whole vendor-specific thing, the gcode crate focuses primarily on syntax and leaves the semantics (e.g. how does G90 X-30.0 Y40.0 translate to machine controls?) up to the implementation.
Some explicit design goals:
- embedded-friendly - most CNC machines are run from microcontrollers, so the entire crate can run without the standard library
- allocation-free parsing (via the
corevisitor API) - error-resistant parsing with diagnostics, and
- O(n) performance with no backtracking.
I've published v0.7.0-rc.1, the API docs are here:
I'd love to get feedback on the release candidate before I publish the final version.
1 post - 1 participant
🏷️ Rust_feed