Warning
This library is still in active development. All APIs and data structures are subject to change.
A Rust library for working with KiCad files. This library handles the parsing and serialization of the KiCad file formats while also providing helpful functionality for generating and manipulating many of the internal structures used in the formats.
kicad_sexpr
- A crate for parsing the KiCad S-Expression format into a friendly tree representation. If you want to parse out the tree structure agnostic to the actual KiCad data format, then this is the crate to use.kicad_format
- A crate for parsing the sexpr trees into a Rust interpretation of the structures used in the file formats. If you are only trying to manipulate the underlying data and not the S-Expression tree directly, then this is the crate to use.
Since this library is not hosted on crates.io, to use it simply add the following to your Cargo.toml
file:
kicad_sexpr = { git = "https://github.com/adom-inc/kicad_lib" }
or
kicad_format = { git = "https://github.com/adom-inc/kicad_lib" }
The documentation for this library is still work in progress, but you can bring up the documentation for the crate you are using with:
$ cargo doc --package kicad_sexpr --open
or
$ cargo doc --package kicad_format --open