Expand description
§Gerber-parser
This is a parser in rust for Gerber file. The underlying representation is built on the gerber-types
crate.
Gerber files are the de-facto file format for PCB manufacturing, but are also used in other context, such as in microfabrication. It is an old format with a lot of baggage, but the specification is well documented, there is an online free viewer available to check your designs, and the format is plaintext making it easy to work with.
There are sibling crates to this crate, as follows:
- gerber-types - underlying types for the parser - https://github.com/MakerPnP/gerber-types
- gerber-viewer - a pure rust gerber viewer - https://github.com/MakerPnP/gerber-viewer
This crate has matured, the API is simple and should be fairly stable now. This crate is the primary driver to changes for the gerber-types crate.
Re-exports§
pub use gerber_types;
Modules§
Structs§
- Gerber
Doc - Representation of a Gerber document
- Gerber
Parser Error With Context
Enums§
Functions§
- parse
- Parse a gerber string (in BufReader) to a GerberDoc