gcode 0.7.0-rc.1

A gcode parser for no-std applications.
Documentation
[package]
name = "gcode"
version = "0.7.0-rc.1"
authors = ["Michael Bryan <michaelfbryan@gmail.com>"]
description = "A gcode parser for no-std applications."
repository = "https://github.com/Michael-F-Bryan/gcode-rs"
readme = "README.md"
license = "MIT OR Apache-2.0"
keywords = ["gcode", "parser"]
categories = ["no-std", "parser-implementations", "embedded"]
edition = "2024"
rust-version = "1.85"

[package.metadata.docs.rs]
rust-version = "1.85"
features = ["unstable-doc-cfg"]

[badges]
maintenance = { status = "actively-developed" }

[features]
default = ["alloc", "serde"]
## Enables the `alloc` crate, enabling [`parse`] and the heap-allocated AST ([`Program`], [`Diagnostics`], etc.).
alloc = []
## Enables serialisation and deserialisation of core and AST types via `serde`.
serde = ["dep:serde"]

#! ### Internal Features
#! The following features are not intended for public use.

## Enables rustdoc labels for items gated by features (for docs.rs - requires nightly).
unstable-doc-cfg = []

[dependencies]
cfg-if = "1.0.4"
doc-cfg = "0.1.0"
document-features = "0.2"
libm = "0.2"
serde = { version = "1.0", features = ["derive"], optional = true }

[dev-dependencies]
insta = "1.46.3"
libtest-mimic = "0.7"
pretty_assertions = "1.4"

[[example]]
name = "pretty_print_visitor"
path = "examples/pretty_print_visitor.rs"
doc-scrape-examples = true

[[test]]
name = "parse_fixtures"
path = "tests/parse_fixtures.rs"
harness = false