icewrap

Crates.ioicewrap
lib.rsicewrap
version0.1.1
sourcesrc
created_at2024-05-20 02:05:06.585101
updated_at2024-05-21 06:52:47.302101
descriptionPort of Heatshrink to Rust
homepage
repositoryhttps://github.com/sameer/g-code
max_upload_size
id1245344
size69,274
Sameer Puri (sameer)

documentation

https://docs.rs/icewrap

README

g-code

crates.io g-code g-code codecov

A joint crate for g-code parsing and emission.

Parsing

The parser is written in Rust using peg.

Demo

cargo run --example parse ./tests/vandy_commodores_logo.gcode

Output: https://gist.github.com/sameer/5fe20dad6faa6329926df48b82e68581

Emission

Basic primitives for g-code emission.

Supports formatting, checksum and line number generation.

Demo

See svg2gcode.

TODOs

Parse

  • g-code parameters
  • g-code infix notation

Emit

  • Remaining commonly-used commands (open an issue or create a PR if you need one that's missing)

References

Commit count: 111

cargo fmt