kicad monkey v2026.11.30
On This Page (8)

Crate-by-Crate Reference

The standalone kicad-monkey Rust workspace contains six pure-Rust crates (Edition 2024, MSRV 1.95, #![forbid(unsafe_code)]). Each crate has a tightly scoped responsibility and minimal dependency footprint.


Quick Selection Guide

If you want to…Depend on
Parse, inspect, compile, or losslessly patch .kicad_pcb, .kicad_mod, .kicad_sch, .kicad_sym, .kicad_pro, or .kicad_wks fileskicad-monkey-core
Emit Gerber X2/X1, Excellon NC Drill, IPC-2581B, Micro-STEP, PnP/BOM CSV, analytic board SVGs, 17 virtual layers, or vdoc bakingkicad-monkey-fab
Render typed Plotter IR documents (board, footprint, symbol, schematic page) directly to deterministic SVGkicad-monkey-svg (+ kicad-monkey-core)
Deserialize, serialize, or validate the 30 TypeSpec wire contracts (Plotter IR, CompiledSchematicGraph, SourceBundleManifest, font/text DTOs)kicad-monkey-contracts
Realize KiCad Newstroke vector text or HarfBuzz/Skrifa OpenType glyph outlines standalonecad-text-realization
Regenerate Rust contract modules from Draft 2020-12 JSON Schemas during developmentkicad-monkey-codegen (dev/build tool)

1. kicad-monkey-core

Role: The foundational KiCad source parsing, round-trip patching, hierarchical schematic compilation, Plotter IR projection, and authoring library.


2. kicad-monkey-fab

Role: Pure-Rust fabrication and virtual-layer geometry engine over kicad_monkey_core::PcbView.


3. kicad-monkey-svg

Role: Bounded, deterministic direct SVG serializer for frozen KiCad Plotter IR documents (kicad.plotter_ir.a0).


4. kicad-monkey-contracts

Role: TypeSpec-generated wire contract structs, validated scalar newtypes, and cross-field semantic validators for all 30 core schemas.


5. cad-text-realization

Role: Shared bounded, deterministic CAD text realization engine for both KiCad's built-in Newstroke vector stroke font and OpenType / TrueType font shaping and outline extraction.


6. kicad-monkey-codegen

Role: Standalone build/development binary that projects TypeSpec-emitted Draft 2020-12 JSON Schemas into deterministic Rust modules.


kicad-monkey v2026.11.30·Docs updated 2026.12.01 15:43 UTC (fd9b75b)