Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

Crate kicad_monkey_core

Crate kicad_monkey_core 

Source
Expand description

Standalone Rust core for KiCad Monkey.

kicad-monkey-core provides deterministic, zero-unsafe parsing, modeling, compilation, Plotter-IR projection, and non-destructive authoring for KiCad 8–10 design files:

Re-exports§

pub use pcb::footprint_primary_property_name;
pub use pcb::is_standalone_footprint_custom_property;
pub use board_plot_contract::BoardPlotContractLimits;
pub use board_plot_contract::ProjectedBoardPlotArtifact;
pub use board_plot_contract::project_board_plot_artifact_a0;
pub use board_plot_contract::project_board_plot_document_a0;
pub use board_plot_contract::project_board_plot_document_with_metadata_a0;
pub use board_plotter_ir::BoardBoundsLimits;
pub use board_plotter_ir::BoardDimensionOperation;
pub use board_plotter_ir::BoardDimensionRecord;
pub use board_plotter_ir::BoardFootprintBlock;
pub use board_plotter_ir::BoardFootprintBlockAttributes;
pub use board_plotter_ir::BoardFootprintChildAttributes;
pub use board_plotter_ir::BoardFootprintChildMetadata;
pub use board_plotter_ir::BoardFootprintOperation;
pub use board_plotter_ir::BoardFootprintPlacement;
pub use board_plotter_ir::BoardFootprintRecord;
pub use board_plotter_ir::BoardGraphicRecord;
pub use board_plotter_ir::BoardGraphicRecordKind;
pub use board_plotter_ir::BoardImportFacts;
pub use board_plotter_ir::BoardNetClassAssignments;
pub use board_plotter_ir::BoardNetClassExtras;
pub use board_plotter_ir::BoardPadFlashFact;
pub use board_plotter_ir::BoardPlotBuildProfile;
pub use board_plotter_ir::BoardPlotDocument;
pub use board_plotter_ir::BoardPlotFacts;
pub use board_plotter_ir::BoardPlotFactsBuildProfile;
pub use board_plotter_ir::BoardPlotLimits;
pub use board_plotter_ir::BoardPlotRecord;
pub use board_plotter_ir::BoardPlotSourceArtifact;
pub use board_plotter_ir::BoardRenderFacts;
pub use board_plotter_ir::BoardSegmentRecord;
pub use board_plotter_ir::BoardTableOperation;
pub use board_plotter_ir::BoardTableRecord;
pub use board_plotter_ir::BoardTextBoxOperation;
pub use board_plotter_ir::BoardTextBoxRecord;
pub use board_plotter_ir::BoardTextHAlign;
pub use board_plotter_ir::BoardTextOperation;
pub use board_plotter_ir::BoardTextRecord;
pub use board_plotter_ir::BoardTextRenderCache;
pub use board_plotter_ir::BoardTextRenderCacheCoordinateSpace;
pub use board_plotter_ir::BoardTextRenderCacheSource;
pub use board_plotter_ir::BoardTextVAlign;
pub use board_plotter_ir::BoardTextVariables;
pub use board_plotter_ir::BoardTrackArcRecord;
pub use board_plotter_ir::BoardViaFabrication;
pub use board_plotter_ir::BoardViaFlashFact;
pub use board_plotter_ir::BoardViaOperation;
pub use board_plotter_ir::BoardViaOperationKind;
pub use board_plotter_ir::BoardViaRecord;
pub use board_plotter_ir::BoardViaType;
pub use board_plotter_ir::BoardZoneRecord;
pub use board_plotter_ir::board_import_facts_from_view;
pub use board_plotter_ir::board_outline_page_bounds;
pub use board_plotter_ir::board_plot_artifact_with_sidecars;
pub use board_plotter_ir::board_plot_artifact_with_text_cache_sidecar;
pub use board_plotter_ir::board_plot_document;
pub use board_plotter_ir::board_plot_document_with_net_classes;
pub use board_plotter_ir::board_plot_document_with_primary_errors;
pub use board_plotter_ir::board_plot_document_with_sidecars;
pub use board_plotter_ir::board_plot_document_with_text_cache_sidecar;
pub use board_plotter_ir::board_plot_facts_with_sidecars;
pub use board_plotter_ir::board_plot_facts_with_sidecars_profiled;
pub use compiled_schematic_graph::CompiledGraphIdentityAllocator;
pub use compiled_schematic_graph::CompiledGraphIdentityError;
pub use compiled_schematic_graph::IdentityMapping;
pub use compiled_schematic_graph::build_compiled_schematic_graph;
pub use compiled_schematic_graph::compiled_schematic_graph_design_scope;
pub use compiled_schematic_graph::validate_compiled_schematic_graph;
pub use design_json::KiCadDesignFacts;
pub use design_json::KiCadDesignFactsBuildProfile;
pub use design_json::KiCadDesignJsonBuildProfile;
pub use design_json::KiCadDesignJsonError;
pub use design_json::KiCadDesignJsonPaths;
pub use design_json::KiCadDesignPcb;
pub use design_json::KiCadDesignSourcePath;
pub use design_json::KiCadSchematicInstance;
pub use design_json::build_kicad_design_facts;
pub use design_json::build_kicad_design_facts_profiled;
pub use design_json::build_kicad_design_json;
pub use design_json::build_kicad_design_json_profiled;
pub use document_metadata::KiCadPaper;
pub use document_metadata::KiCadTitleBlock;
pub use footprint::FootprintDocument;
pub use footprint::FootprintEdit;
pub use footprint::FootprintLimits;
pub use footprint::FootprintProperty;
pub use footprint::FootprintView;
pub use footprint_plot_contract::project_footprint_plot_document_a0;
pub use kicad_netlist::KiCadDesignSheet;
pub use kicad_netlist::KiCadLibPart;
pub use kicad_netlist::KiCadLibPartPin;
pub use kicad_netlist::KiCadNet;
pub use kicad_netlist::KiCadNetClass;
pub use kicad_netlist::KiCadNetlist;
pub use kicad_netlist::KiCadNetlistComponent;
pub use kicad_netlist::KiCadNetlistComponentUnit;
pub use kicad_netlist::KiCadNetlistEndpoint;
pub use kicad_netlist::KiCadNetlistGraphicalIds;
pub use kicad_netlist::KiCadNetlistJsonMetadata;
pub use kicad_netlist::KiCadNetlistTerminal;
pub use kicad_netlist::build_kicad_netlist;
pub use kicad_netlist::build_kicad_netlist_json;
pub use kicad_netlist::emit_kicad_netlist;
pub use model_resolution::KiCadModelResolution;
pub use model_resolution::KiCadModelResolutionStatus;
pub use model_resolution::KiCadModelResolver;
pub use model_resolution::KiCadModelSearchContext;
pub use pcb::PcbAnnularRingStats;
pub use pcb::PcbBarcode;
pub use pcb::PcbBoardMetadata;
pub use pcb::PcbBoardText;
pub use pcb::PcbBoardVariant;
pub use pcb::PcbComponentClassRef;
pub use pcb::PcbCounts;
pub use pcb::PcbDimension;
pub use pcb::PcbDocument;
pub use pcb::PcbDrillLayerSpan;
pub use pcb::PcbDrillProperties;
pub use pcb::PcbEdit;
pub use pcb::PcbEmbeddedFile;
pub use pcb::PcbFamily;
pub use pcb::PcbFootprint;
pub use pcb::PcbFootprintGraphic;
pub use pcb::PcbFootprintMemberOwner;
pub use pcb::PcbFootprintPrimaryBatch;
pub use pcb::PcbFootprintPrimaryFieldResults;
pub use pcb::PcbFootprintProperty;
pub use pcb::PcbFootprintText;
pub use pcb::PcbFootprintTextBox;
pub use pcb::PcbFootprintTransform;
pub use pcb::PcbFootprintZone;
pub use pcb::PcbFrontBackOptionalBool;
pub use pcb::PcbGeneratedItem;
pub use pcb::PcbGraphic;
pub use pcb::PcbGraphicKind;
pub use pcb::PcbGroup;
pub use pcb::PcbHole;
pub use pcb::PcbHoleOwner;
pub use pcb::PcbHoleShape;
pub use pcb::PcbImage;
pub use pcb::PcbLayer;
pub use pcb::PcbLimits;
pub use pcb::PcbModelReference;
pub use pcb::PcbNet;
pub use pcb::PcbNetRef;
pub use pcb::PcbPad;
pub use pcb::PcbPadCustomOptions;
pub use pcb::PcbPadCustomPrimitive;
pub use pcb::PcbPadDrill;
pub use pcb::PcbPadNameGroup;
pub use pcb::PcbPadPolygonPoint;
pub use pcb::PcbPadPrimitiveGeometry;
pub use pcb::PcbPadstack;
pub use pcb::PcbPadstackLayer;
pub use pcb::PcbPoint;
pub use pcb::PcbPolygonPoint;
pub use pcb::PcbPostMachiningProperties;
pub use pcb::PcbProfileOwner;
pub use pcb::PcbProfilePrimitive;
pub use pcb::PcbProperty;
pub use pcb::PcbResolvedPadCopperLayer;
pub use pcb::PcbRoutingArc;
pub use pcb::PcbSegment;
pub use pcb::PcbSelection;
pub use pcb::PcbSetup;
pub use pcb::PcbStackup;
pub use pcb::PcbStackupLayer;
pub use pcb::PcbStackupSubLayer;
pub use pcb::PcbTable;
pub use pcb::PcbTableCell;
pub use pcb::PcbTeardropParameters;
pub use pcb::PcbVia;
pub use pcb::PcbViaStack;
pub use pcb::PcbViaStackLayer;
pub use pcb::PcbView;
pub use pcb::PcbZone;
pub use pcb::PcbZoneFilledPolygon;
pub use pcb::PcbZoneKeepout;
pub use pcb::PcbZoneLayerConnections;
pub use pcb::PcbZoneLayerProperty;
pub use pcb::PcbZonePlacement;
pub use pcb::PcbZonePlacementSource;
pub use pcb::PcbZonePolygon;
pub use pcb::resolve_pad_copper_layer;
pub use pcb_authoring::AuthoredBackdrill;
pub use pcb_authoring::AuthoredBarcode;
pub use pcb_authoring::AuthoredBarcodeEccLevel;
pub use pcb_authoring::AuthoredBarcodeKind;
pub use pcb_authoring::AuthoredBoardText;
pub use pcb_authoring::AuthoredChamferCorner;
pub use pcb_authoring::AuthoredColor;
pub use pcb_authoring::AuthoredCustomPadClearance;
pub use pcb_authoring::AuthoredDimension;
pub use pcb_authoring::AuthoredDimensionArrowDirection;
pub use pcb_authoring::AuthoredDimensionFormat;
pub use pcb_authoring::AuthoredDimensionKind;
pub use pcb_authoring::AuthoredDimensionOrientation;
pub use pcb_authoring::AuthoredDimensionStyle;
pub use pcb_authoring::AuthoredDimensionText;
pub use pcb_authoring::AuthoredDimensionTextFrame;
pub use pcb_authoring::AuthoredDimensionTextPosition;
pub use pcb_authoring::AuthoredDimensionUnits;
pub use pcb_authoring::AuthoredDimensionUnitsFormat;
pub use pcb_authoring::AuthoredDrill;
pub use pcb_authoring::AuthoredEmbeddedFile;
pub use pcb_authoring::AuthoredFootprint;
pub use pcb_authoring::AuthoredFootprintOccurrence;
pub use pcb_authoring::AuthoredFootprintProperty;
pub use pcb_authoring::AuthoredFootprintScalarProperty;
pub use pcb_authoring::AuthoredFootprintText;
pub use pcb_authoring::AuthoredFrontBackPolicy;
pub use pcb_authoring::AuthoredGraphic;
pub use pcb_authoring::AuthoredGraphicGeometry;
pub use pcb_authoring::AuthoredGroup;
pub use pcb_authoring::AuthoredKeepout;
pub use pcb_authoring::AuthoredLayer;
pub use pcb_authoring::AuthoredModel;
pub use pcb_authoring::AuthoredNet;
pub use pcb_authoring::AuthoredNetRef;
pub use pcb_authoring::AuthoredPad;
pub use pcb_authoring::AuthoredPadAnchor;
pub use pcb_authoring::AuthoredPadKind;
pub use pcb_authoring::AuthoredPadPolygonPoint;
pub use pcb_authoring::AuthoredPadPrimitive;
pub use pcb_authoring::AuthoredPadPrimitiveFill;
pub use pcb_authoring::AuthoredPadPrimitiveGeometry;
pub use pcb_authoring::AuthoredPadShape;
pub use pcb_authoring::AuthoredPadstack;
pub use pcb_authoring::AuthoredPadstackLayer;
pub use pcb_authoring::AuthoredPadstackLayerSelector;
pub use pcb_authoring::AuthoredPadstackMode;
pub use pcb_authoring::AuthoredPadstackZoneConnection;
pub use pcb_authoring::AuthoredPcb;
pub use pcb_authoring::AuthoredPlacementConstraint;
pub use pcb_authoring::AuthoredPlacementSource;
pub use pcb_authoring::AuthoredPoint;
pub use pcb_authoring::AuthoredPolygonPoint;
pub use pcb_authoring::AuthoredProperty;
pub use pcb_authoring::AuthoredResourceData;
pub use pcb_authoring::AuthoredRestriction;
pub use pcb_authoring::AuthoredRoutingArc;
pub use pcb_authoring::AuthoredRuleArea;
pub use pcb_authoring::AuthoredSegment;
pub use pcb_authoring::AuthoredSetup;
pub use pcb_authoring::AuthoredStackup;
pub use pcb_authoring::AuthoredStackupLayer;
pub use pcb_authoring::AuthoredStackupSubLayer;
pub use pcb_authoring::AuthoredStandaloneFootprint;
pub use pcb_authoring::AuthoredTextBox;
pub use pcb_authoring::AuthoredTextBoxGeometry;
pub use pcb_authoring::AuthoredTextEffects;
pub use pcb_authoring::AuthoredTextHorizontalJustification;
pub use pcb_authoring::AuthoredTextVerticalJustification;
pub use pcb_authoring::AuthoredVia;
pub use pcb_authoring::AuthoredViaKind;
pub use pcb_authoring::AuthoredViaStack;
pub use pcb_authoring::AuthoredViaStackLayer;
pub use pcb_authoring::AuthoredZone;
pub use pcb_authoring::AuthoredZoneConnection;
pub use pcb_authoring::AuthoredZoneFill;
pub use pcb_authoring::AuthoredZoneFilledPolygon;
pub use pcb_authoring::AuthoredZoneHatch;
pub use pcb_authoring::AuthoredZoneHatchBorder;
pub use pcb_authoring::AuthoredZoneHatchedFill;
pub use pcb_authoring::AuthoredZonePadConnection;
pub use pcb_authoring::AuthoredZonePolygon;
pub use pcb_authoring::KICAD_SOURCE_VERSION_2024_12_29;
pub use pcb_authoring::PcbAuthoredText;
pub use pcb_authoring::PcbAuthoringLimits;
pub use pcb_authoring::PcbAuthoringWarning;
pub use pcb_authoring::PcbAuthoringWarningCode;
pub use pcb_authoring::recover_board_text_knockout_cache;
pub use plot_document_contract::PlotDocumentMetadata;
pub use plot_document_contract::PlotProjectionError;
pub use plot_document_contract::PlotProjectionErrorKind;
pub use plotter_ir::FootprintPlotDocument;
pub use plotter_ir::FootprintPlotLimits;
pub use plotter_ir::footprint_plot_document;
pub use plotter_ir::footprint_plot_document_with_primary_errors;
pub use plotter_text_cache::PLOTTER_TEXT_MAX_ERROR;
pub use plotter_text_cache::PlotterTextCacheResources;
pub use plotter_text_cache::PlotterTextFont;
pub use plotter_types::ArcThreePoint;
pub use plotter_types::BezierCurve;
pub use plotter_types::FlashPadCircle;
pub use plotter_types::FlashPadCustom;
pub use plotter_types::FlashPadOval;
pub use plotter_types::FlashPadRect;
pub use plotter_types::FlashPadRoundRect;
pub use plotter_types::FlashPadTrapez;
pub use plotter_types::PlotterCircle;
pub use plotter_types::PlotterFill;
pub use plotter_types::PlotterImage;
pub use plotter_types::PlotterLineStyle;
pub use plotter_types::PlotterOperation;
pub use plotter_types::PlotterPoly;
pub use plotter_types::PlotterRect;
pub use plotter_types::PlotterText;
pub use plotter_types::PlotterTextHAlign;
pub use plotter_types::PlotterTextVAlign;
pub use plotter_types::ThickSegment;
pub use project::ProjectBoardDesignSettings;
pub use project::ProjectBusAlias;
pub use project::ProjectDiffPairDimensions;
pub use project::ProjectDocument;
pub use project::ProjectError;
pub use project::ProjectErrorKind;
pub use project::ProjectFabricationRules;
pub use project::ProjectNetClass;
pub use project::ProjectNetClassPattern;
pub use project::ProjectNetSettings;
pub use project::ProjectTuningDefaults;
pub use project::ProjectTuningSettings;
pub use project::ProjectVariant;
pub use project::ProjectView;
pub use schematic_annotation_source::SchematicAnnotationContact;
pub use schematic_annotation_source::SchematicAnnotationContactIssue;
pub use schematic_annotation_source::SchematicAnnotationContactIssueKind;
pub use schematic_annotation_source::SchematicAnnotationContactTarget;
pub use schematic_annotation_source::SchematicAnnotationContacts;
pub use schematic_annotation_source::SchematicAnnotationProperty;
pub use schematic_annotation_source::SchematicAnnotationSelector;
pub use schematic_annotation_source::SchematicAnnotationShape;
pub use schematic_annotation_source::SchematicAnnotationSourceLimits;
pub use schematic_annotation_source::SchematicAnnotationSourceView;
pub use schematic_annotation_source::SchematicAnnotationWireContactKind;
pub use schematic_annotation_source::SchematicAuthoredAnnotationKind;
pub use schematic_annotation_source::SchematicAuthoredAnnotationRecord;
pub use schematic_annotation_source::SchematicAuthoredSheetEntry;
pub use schematic_annotation_source::SchematicAuthoredSheetRecord;
pub use schematic_annotation_source::SchematicAuthoredSheetSources;
pub use schematic_annotation_source::SchematicNativeAnnotation;
pub use schematic_annotation_source::SchematicNativeAnnotationFacts;
pub use schematic_annotation_source::SchematicNativeWireParameter;
pub use schematic_annotation_source::SchematicSheetContactTarget;
pub use schematic_annotation_source::SchematicSheetEntryContact;
pub use schematic_annotation_source::SchematicSheetEntrySelector;
pub use schematic_annotation_source::SchematicSheetPropertyFacts;
pub use schematic_bundle::KiCadAssemblyVariantContext;
pub use schematic_bundle::KiCadAuthoredVariant;
pub use schematic_bundle::KiCadVariantDiagnostic;
pub use schematic_bundle::KiCadVariantField;
pub use schematic_bundle::KiCadVariantFlags;
pub use schematic_bundle::KiCadVariantFootprint;
pub use schematic_bundle::KiCadVariantInstance;
pub use schematic_bundle::KiCadVariantSheet;
pub use schematic_bundle::KiCadVariantSymbol;
pub use schematic_bundle::MAX_SCHEMATIC_DEFINITION_CACHE_BYTES;
pub use schematic_bundle::ParsedSchematicDefinition;
pub use schematic_bundle::SchematicBundleIndex;
pub use schematic_bundle::SchematicBundleIndexBuildProfile;
pub use schematic_bundle::SchematicDefinition;
pub use schematic_bundle::SchematicDefinitionCacheError;
pub use schematic_bundle::SchematicDocument;
pub use schematic_bundle::SchematicImportRead;
pub use schematic_bundle::SchematicOccurrence;
pub use schematic_bundle::SchematicPageInstance;
pub use schematic_bundle::SchematicSheet;
pub use schematic_bus::SchematicBusExpansionError;
pub use schematic_bus::SchematicBusExpansionErrorKind;
pub use schematic_bus::SchematicBusPattern;
pub use schematic_bus::canonical_bus_member_name;
pub use schematic_bus::expand_schematic_bus_label;
pub use schematic_bus::is_schematic_bus_label;
pub use schematic_bus::parse_schematic_bus_group;
pub use schematic_bus::parse_schematic_bus_vector;
pub use schematic_bus_connectivity::SchematicBusDriver;
pub use schematic_bus_connectivity::SchematicBusDriverKind;
pub use schematic_bus_connectivity::SchematicBusSubgraph;
pub use schematic_bus_connectivity::SchematicDriverPriority;
pub use schematic_bus_connectivity::build_schematic_bus_subgraphs;
pub use schematic_bus_source::SchematicAuthoredBusGroupFacts;
pub use schematic_bus_source::SchematicBusAliasDeclarationRecord;
pub use schematic_bus_source::SchematicBusAliasDeclarations;
pub use schematic_bus_source::SchematicBusContactAuthority;
pub use schematic_bus_source::SchematicBusContactSite;
pub use schematic_bus_source::SchematicBusEntryArtworkFacts;
pub use schematic_bus_source::SchematicBusEntryArtworkRole;
pub use schematic_bus_source::SchematicBusGeometry;
pub use schematic_bus_source::SchematicBusGroupFacts;
pub use schematic_bus_source::SchematicBusJunctionFacts;
pub use schematic_bus_source::SchematicBusJunctionRole;
pub use schematic_bus_source::SchematicBusLabelFacts;
pub use schematic_bus_source::SchematicBusLineContact;
pub use schematic_bus_source::SchematicBusSourceIssue;
pub use schematic_bus_source::SchematicBusSourceKind;
pub use schematic_bus_source::SchematicBusSourceLimits;
pub use schematic_bus_source::SchematicBusSourceRecord;
pub use schematic_bus_source::SchematicBusSourceSelector;
pub use schematic_bus_source::SchematicBusVectorFacts;
pub use schematic_bus_source::SchematicStandaloneBusSource;
pub use schematic_connection_source::SchematicCarrierIssue;
pub use schematic_connection_source::SchematicCarrierIssueKind;
pub use schematic_connection_source::SchematicConnectionSourceView;
pub use schematic_connection_source::SchematicJunctionRecord;
pub use schematic_connection_source::SchematicWireGeometryIndex;
pub use schematic_connection_source::SchematicWireGeometryOmission;
pub use schematic_connection_source::SchematicWireGeometryOmissionReason;
pub use schematic_connection_source::SchematicWireLineStyle;
pub use schematic_connection_source::SchematicWireRecord;
pub use schematic_connection_source::SchematicWireStroke;
pub use schematic_connectivity::SchematicGraphicalIds;
pub use schematic_connectivity::SchematicLabelDriver;
pub use schematic_connectivity::SchematicPinDriver;
pub use schematic_connectivity::SchematicSubpartSettings;
pub use schematic_connectivity::SchematicWireDriverKind;
pub use schematic_connectivity::SchematicWireSubgraph;
pub use schematic_connectivity::build_schematic_occurrence_subgraphs;
pub use schematic_connectivity::build_schematic_occurrence_subgraphs_with_settings;
pub use schematic_design::SchematicDesignNet;
pub use schematic_design::SchematicDesignNetMember;
pub use schematic_design::SchematicDesignNetTerminal;
pub use schematic_design::SchematicHierarchyNetBinding;
pub use schematic_design::SchematicScalarDesignNetlist;
pub use schematic_design::build_schematic_scalar_design_nets;
pub use schematic_design::build_schematic_scalar_design_nets_with_settings;
pub use schematic_diagnostics::KiCadDiagnostic;
pub use schematic_diagnostics::KiCadDiagnosticCode;
pub use schematic_diagnostics::KiCadDiagnosticSeverity;
pub use schematic_diagnostics::RepeatedUuid;
pub use schematic_diagnostics::effective_uuid_text;
pub use schematic_diagnostics::increment_uuid_text;
pub use schematic_diagnostics::sorted_diagnostics;
pub use schematic_native_load::SchematicNativeLoadedJunctionRecord;
pub use schematic_native_load::SchematicNativeLoadedNumber;
pub use schematic_native_load::SchematicNativeLoadedPoint;
pub use schematic_native_load::SchematicNativeLoadedPose;
pub use schematic_native_load::SchematicNativeLoadedWireRecord;
pub use schematic_native_load::SchematicNativeWireGeometryIndex;
pub use schematic_native_load::native_loaded_library_pin_point;
pub use schematic_netlist::SchematicLocalNet;
pub use schematic_netlist::SchematicLocalNetTerminal;
pub use schematic_netlist::build_schematic_occurrence_nets;
pub use schematic_netlist::build_schematic_occurrence_nets_with_settings;
pub use schematic_plot_contract::SchematicPlotContractBudget;
pub use schematic_plot_contract::SchematicPlotContractError;
pub use schematic_plot_contract::schematic_plot_document_budget;
pub use schematic_plot_contract::schematic_plot_document_json;
pub use schematic_plotter_ir::SchematicAnnotationRecord;
pub use schematic_plotter_ir::SchematicAnnotationRecordKind;
pub use schematic_plotter_ir::SchematicCanvas;
pub use schematic_plotter_ir::SchematicConnectivityRecord;
pub use schematic_plotter_ir::SchematicConnectivityRecordKind;
pub use schematic_plotter_ir::SchematicDrawingSettings;
pub use schematic_plotter_ir::SchematicGraphicRecord;
pub use schematic_plotter_ir::SchematicGraphicRecordKind;
pub use schematic_plotter_ir::SchematicImageRecord;
pub use schematic_plotter_ir::SchematicPlotBuildProfile;
pub use schematic_plotter_ir::SchematicPlotContext;
pub use schematic_plotter_ir::SchematicPlotDocument;
pub use schematic_plotter_ir::SchematicPlotOperation;
pub use schematic_plotter_ir::SchematicPlotRecord;
pub use schematic_plotter_ir::SchematicPlotVariables;
pub use schematic_plotter_ir::SchematicRuleAreaRecord;
pub use schematic_plotter_ir::SchematicRuleAreaShape;
pub use schematic_plotter_ir::SchematicSheetHeaderRecord;
pub use schematic_plotter_ir::SchematicSheetPinAttrs;
pub use schematic_plotter_ir::SchematicSheetPinBlock;
pub use schematic_plotter_ir::SchematicSheetRecord;
pub use schematic_plotter_ir::SchematicStyledThickSegment;
pub use schematic_plotter_ir::SchematicSymbolInstanceRecord;
pub use schematic_plotter_ir::SchematicSymbolOverplotRecord;
pub use schematic_plotter_ir::SchematicSymbolPinAttrs;
pub use schematic_plotter_ir::SchematicSymbolPinBlock;
pub use schematic_plotter_ir::SchematicTableRecord;
pub use schematic_plotter_ir::SchematicTextOperation;
pub use schematic_plotter_ir::SchematicTitleBlock;
pub use schematic_plotter_ir::schematic_plot_document;
pub use schematic_plotter_ir::schematic_plot_document_with_annotations;
pub use schematic_plotter_ir::schematic_plot_document_with_graphics;
pub use schematic_plotter_ir::schematic_plot_document_with_sheets;
pub use schematic_plotter_ir::schematic_plot_document_with_sheets_profiled;
pub use schematic_plotter_ir::schematic_plot_document_with_symbols;
pub use schematic_power_source::SchematicJumperGroupRecord;
pub use schematic_power_source::SchematicJumperPin;
pub use schematic_power_source::SchematicJumperPinSelector;
pub use schematic_power_source::SchematicLibraryJumperGroups;
pub use schematic_power_source::SchematicNativeJumperGroup;
pub use schematic_power_source::SchematicNativePinContact;
pub use schematic_power_source::SchematicNativePinContactTarget;
pub use schematic_power_source::SchematicNativePinContacts;
pub use schematic_power_source::SchematicNativePinContext;
pub use schematic_power_source::SchematicNativePinContextIssue;
pub use schematic_power_source::SchematicNativePinElectricalType;
pub use schematic_power_source::SchematicNativePinSelector;
pub use schematic_power_source::SchematicNativePowerKind;
pub use schematic_power_source::SchematicNativePowerPin;
pub use schematic_power_source::SchematicNativePowerPinFacts;
pub use schematic_power_source::SchematicNativePowerPinRecord;
pub use schematic_power_source::SchematicPowerContactIssue;
pub use schematic_power_source::SchematicPowerContactIssueKind;
pub use schematic_power_source::SchematicPowerNameSource;
pub use schematic_power_source::SchematicPowerParent;
pub use schematic_power_source::SchematicPowerPinSelection;
pub use schematic_power_source::SchematicPowerPlacement;
pub use schematic_power_source::SchematicPowerSelectionInventory;
pub use schematic_power_source::SchematicPowerSourceLimits;
pub use schematic_power_source::SchematicPowerSourceView;
pub use schematic_symbol_source::SchematicFieldFrame;
pub use schematic_symbol_source::SchematicFieldNativeTextSize;
pub use schematic_symbol_source::SchematicFieldRecord;
pub use schematic_symbol_source::SchematicFieldWithNativeTextSize;
pub use schematic_symbol_source::SchematicLibrarySource;
pub use schematic_symbol_source::SchematicPinRecord;
pub use schematic_symbol_source::SchematicPlacedField;
pub use schematic_symbol_source::SchematicSourceForm;
pub use schematic_symbol_source::SchematicSymbolSourceView;
pub use source_bundle::SourceBundle;
pub use source_bundle::SourceBundleError;
pub use source_bundle::SourceBundleErrorKind;
pub use source_bundle::SourceFile;
pub use symbol_authoring::AuthoredPinAlternate;
pub use symbol_authoring::AuthoredPinElectricalType;
pub use symbol_authoring::AuthoredPinGraphicStyle;
pub use symbol_authoring::AuthoredPinOrientation;
pub use symbol_authoring::AuthoredSymbol;
pub use symbol_authoring::AuthoredSymbolBodyStyles;
pub use symbol_authoring::AuthoredSymbolColor;
pub use symbol_authoring::AuthoredSymbolFill;
pub use symbol_authoring::AuthoredSymbolItem;
pub use symbol_authoring::AuthoredSymbolLibrary;
pub use symbol_authoring::AuthoredSymbolLineStyle;
pub use symbol_authoring::AuthoredSymbolPin;
pub use symbol_authoring::AuthoredSymbolPoint;
pub use symbol_authoring::AuthoredSymbolPowerKind;
pub use symbol_authoring::AuthoredSymbolProperty;
pub use symbol_authoring::AuthoredSymbolShape;
pub use symbol_authoring::AuthoredSymbolShapeGeometry;
pub use symbol_authoring::AuthoredSymbolStroke;
pub use symbol_authoring::AuthoredSymbolText;
pub use symbol_authoring::AuthoredSymbolTextBox;
pub use symbol_authoring::AuthoredSymbolTextEffects;
pub use symbol_authoring::AuthoredSymbolTextHorizontal;
pub use symbol_authoring::AuthoredSymbolTextVertical;
pub use symbol_authoring::AuthoredSymbolUnit;
pub use symbol_authoring::KICAD_DEFAULT_PIN_NAME_OFFSET_NM;
pub use symbol_authoring::KICAD_DEFAULT_TEXT_SIZE_NM;
pub use symbol_authoring::KICAD_SYMBOL_LIBRARY_VERSION_2025_10_24;
pub use symbol_authoring::SymbolAuthoringLimits;
pub use symbol_authoring::escape_lib_item_name;
pub use symbol_authoring::unescape_lib_item_name;
pub use symbol_authoring::unescape_string;
pub use symbol_library::SymbolBooleanField;
pub use symbol_library::SymbolLibraryEdit;
pub use symbol_library::SymbolLibraryView;
pub use symbol_library::SymbolSummary;
pub use symbol_plot_contract::project_symbol_plot_document_a0;
pub use symbol_plotter_ir::SymbolPlotDocument;
pub use symbol_plotter_ir::SymbolPlotRecord;
pub use symbol_plotter_ir::SymbolPlotSelectorEntry;
pub use symbol_plotter_ir::SymbolPlotSelectors;
pub use symbol_plotter_ir::symbol_plot_document;
pub use symbol_plotter_ir::symbol_plot_document_with_text_variables;
pub use symbol_plotter_ir::symbol_plot_selector_inventory;
pub use symbol_plotter_ir::symbol_plot_selectors;
pub use text_block_layout::KICAD_OUTLINE_EM_PER_SIZE;
pub use text_block_layout::KICAD_TEXT_INTERLINE_FACTOR;
pub use text_block_layout::KICAD_TEXT_OVERBAR_HEIGHT_RATIO;
pub use text_block_layout::KICAD_TEXT_TAB_WIDTH_FACTOR;
pub use text_block_layout::PlainTextLayoutOutput;
pub use text_block_layout::TextBlockLayoutOutput;
pub use text_block_layout::TextBlockLayoutRequest;
pub use text_block_layout::layout_plain_text_hinted_a0;
pub use text_block_layout::layout_text_block_hinted_a0;
pub use text_linebreak::linebreak_text_block_hinted_a0;
pub use text_metadata::KiCadColor;
pub use text_metadata::KiCadFont;
pub use text_metadata::KiCadTextEffects;
pub use text_render_cache::TextRenderCache;
pub use text_render_cache::TextRenderCacheError;
pub use text_render_cache::TextRenderCacheErrorKind;
pub use text_render_cache::TextRenderCachePolygon;
pub use text_render_cache::generate_text_render_cache_a0;
pub use text_render_cache::generate_text_render_cache_block_hinted_a0;
pub use text_render_cache::generate_text_render_cache_hinted_a0;
pub use text_render_cache::read_text_render_cache_a0;
pub use text_render_cache::write_text_render_cache_a0;
pub use worksheet::WorksheetBitmap;
pub use worksheet::WorksheetColor;
pub use worksheet::WorksheetCorner;
pub use worksheet::WorksheetDocument;
pub use worksheet::WorksheetFont;
pub use worksheet::WorksheetFormat;
pub use worksheet::WorksheetItem;
pub use worksheet::WorksheetLine;
pub use worksheet::WorksheetMetadata;
pub use worksheet::WorksheetPoint;
pub use worksheet::WorksheetPolygon;
pub use worksheet::WorksheetRect;
pub use worksheet::WorksheetRepeat;
pub use worksheet::WorksheetSetup;
pub use worksheet::WorksheetText;
pub use worksheet::WorksheetView;
pub use sexpr::Error;
pub use sexpr::ErrorKind;
pub use sexpr::ErrorPhase;
pub use sexpr::FormatOptions;
pub use sexpr::Lexer;
pub use sexpr::Patch;
pub use sexpr::Position;
pub use sexpr::Sexp;
pub use sexpr::Token;
pub use sexpr::TokenKind;
pub use sexpr::apply_patches;
pub use sexpr::apply_patches_with_limit;
pub use sexpr::build;
pub use sexpr::build_with_limit;
pub use sexpr::format;
pub use sexpr::lex;
pub use sexpr::parse;
pub use sexpr::parse_bytes;
pub use sexpr::utf8_text;
pub use sexpr_mutation::Walk;
pub use sexpr_mutation::find_path;
pub use sexpr_mutation::remove_all_elements;
pub use sexpr_mutation::remove_element;
pub use sexpr_mutation::replace_element;
pub use sexpr_mutation::set_value;
pub use sexpr_mutation::transform_descendants;
pub use sexpr_mutation::walk;
pub use sexpr_projection::FormSpan;
pub use sexpr_projection::Selector;
pub use sexpr_projection::StructuralIndex;
pub use sexpr_projection::parse_form;
pub use sexpr_projection::read_form_bytes;
pub use sexpr_projection::scan_form_spans;
pub use sexpr_projection::scan_reader_form_spans;
pub use schematic_compilation::*;

Modules§

board_plot_contract
TypeSpec projection for native board plotter documents.
board_plotter_ir
Board-level plotter IR producer over selected PCB families.
compiled_schematic_graph
Native deterministic identity and semantic validation for compiled graphs.
configuration
Close-to-format KiCad user-configuration operations. No application roots, provider policy, process environment mutation or filesystem writes are owned here.
design_json
document_metadata
Close-to-format document metadata shared by KiCad board and schematic files.
font_outline
footprint
Typed, source-backed views and focused edits for standalone footprints.
footprint_plot_contract
Typed standalone-footprint projection into the frozen a0 contract.
kicad_netlist
Resolved native KiCad netlist model and bounded version-E writer.
library_edits
Parameterized, source-preserving edits for reusable KiCad library items.
manufacturing_output_observations
Read-only declarations from captured manufacturing bytes, never image approval.
model_host
Read-only, bounded host discovery for KiCad 3D model search paths.
model_resolution
Explicit host model lookup, mirroring Python’s KiCadModelResolver. Installed-KiCad discovery is host work. No process environment is read here.
pcb
Native, source-backed views and focused edits for KiCad PCB documents.
pcb_authoring
Typed fresh-source authoring for KiCad PCB and footprint files.
plot_document_contract
Shared metadata and errors for typed Plotter-IR projection.
plotter_ir
Shared plotter operations and the source-selected footprint producer.
plotter_text_cache
Caller-supplied native outline-font resources for plotter producers.
plotter_types
Producer-neutral plotter operation vocabulary.
project
.kicad_pro JSON source model and exact owned writer.
schematic_annotation_source
Bounded authored annotation reads, independent of compact connectivity and plot projections. Native positions use the pinned KiCad10.0.5 loader.
schematic_bundle
schematic_bus
Bounded KiCad schematic bus-label parsing and expansion.
schematic_bus_connectivity
schematic_bus_source
Checked, bounded authored bus facts and optional fixed-vector qualification. This does not invoke the legacy bus builder or assemble a project.
schematic_compilation
Immutable base compilation with exact provider/source joins; not a wire format.
schematic_connection_source
Checked, borrowed scalar-wire and junction facts from exact authored rows. These facts do not establish electrical contact or resolve drawing defaults.
schematic_connectivity
schematic_design
schematic_diagnostics
Schematic diagnostics that travel beside the Plotter IR, never inside it.
schematic_documentation_source
Bounded authored sheet documentation. No plot operations or electrical facts.
schematic_embedded
Bounded extraction of KiCad’s zstd-compressed schematic sidecars.
schematic_native_load
Pinned KiCad10.0.5 source-loading geometry beside the unchanged exact reader. No model IDs, electrical permission, snapping or saved-source mutation.
schematic_netlist
schematic_page
Close-to-format schematic paper access, independent of plotting output.
schematic_plot_contract
Bounded projection of the typed schematic plot model into the frozen a0 contract.
schematic_plotter_ir
Bounded native schematic Plotter-IR foundation.
schematic_power_source
Checked, additive KiCad10.0.5 pin/power reads and local contact permission. No model identity, net naming, wire splitting, source repair or legacy connectivity behavior is supplied by this surface.
schematic_symbol_source
Borrowed, ordered schematic symbol source for import and inspection.
sexpr
KiCad DSN-style S-expression parsing and deterministic building.
sexpr_mutation
Generic owned-tree mutation primitives.
sexpr_projection
Allocation-bounded structural selection over KiCad S-expression source.
source_bundle
Named, byte-preserving multi-file inputs for the schematic compiler.
symbol_authoring
Typed fresh-source authoring for KiCad symbol libraries (.kicad_sym).
symbol_library
Typed, source-backed reads and focused writes for KiCad symbol libraries.
symbol_plot_contract
Typed selected-library-symbol projection into the frozen a0 contract.
symbol_plotter_ir
Source-selected library-symbol geometry and text plotter producer.
testing
Support shared by KiCad Monkey’s and KiCad Cruncher’s tests.
text_bezier
text_block_layout
Bounded KiCad multiline, tabbed, and markup outline-text layout.
text_contours
text_layout
text_linebreak
Bounded KiCad outline-font text-box line breaking.
text_metadata
Close-to-format text metadata shared by KiCad document families.
text_render_cache
Typed native KiCad text render-cache generation and S-expression I/O.
text_shaping
text_topology
worksheet
Source-backed KiCad worksheet/page-layout model and exact owned writer.

Structs§

EmbeddedFile
Metadata for one source-backed embedded resource.
FontOutlineError
Fail-closed native outline extraction error.
FontOutlineFace
Validated, variation-configured face reusable across a bounded text run.
FontOutlineFaceRequest
Contract-aligned metadata shared by every glyph extracted from one face.
FontOutlineOutput
Native outline in unscaled font design units.
FontOutlineRequest
Contract-aligned metadata for one out-of-band glyph request.
FootprintGraphicalProperty
FootprintText
FootprintTextBox
HintedFontOutlineFace
Validated safe-Rust hinted face reusable across a bounded text run.
PcbFeatureDiagnostic
PcbLocatedFeature
One admitted selector. footprint_index is the actual Source index, not result order.
PcbLocatedFeatures
Only the native operation constructs this immutable, byte-bound selection.
PcbLocatedFootprint
The original local records and their actual native placement; never a fabricated pad outline.
ProjectedSchematicPagePlotArtifact
SchematicBusAlias
SchematicBusEntry
The stored origin and diagonal size of a bus entry.
SchematicConnectivity
Deterministic connected components over wire endpoints and registered carrier points.
SchematicEffectiveSymbol
SchematicJunction
A junction marker at one exact schematic coordinate.
SchematicLabel
Connectivity-relevant fields shared by local, global, and hierarchical labels.
SchematicLegacySymbolInstance
SchematicLibraryPin
SchematicLibrarySubsymbol
SchematicLibrarySymbol
SchematicNoConnect
An intentional no-connect marker.
SchematicPageContextOverrides
SchematicPagePlotError
SchematicPagePlotRequest
SchematicPagePlotSourceArtifact
SchematicPlacedSymbol
SchematicPoint
Exact schematic-grid coordinate used by connectivity rather than floating point.
SchematicPolyline
A source wire or bus polyline.
SchematicSheetPin
SchematicSymbolInstance
SchematicSymbolInstanceLookupError
SchematicSymbolInstanceVariant
SchematicSymbolPin
SchematicSymbolProperty
SchematicSymbolTerminal
SchematicSymbolVariantField
SymbolTextVariables
Exact-name ${NAME} values supplied by the caller for symbol body text.
TextBezierError
TextBezierOutput
Flattened points and exact charged work for boundary tests and profiling.
TextContour
Ordered contour points preserving the outline callback’s closing edge.
TextContourError
Fail-closed text contour error.
TextContourOutput
Positioned contours plus the final run advance in caller coordinates.
TextContourRequest
One raw text run before alignment, markup, mirroring, or rotation.
TextLayoutRequest
One plain single-line text layout request.
TextPoint
One point in the caller’s declared coordinate space.
TextShapingError
Fail-closed native shaping error.
TextShapingOutput
Native shaping output before outline extraction or KiCad placement.
TextTopologyOutput
Fractured exterior-only contours and observable topology work.

Enums§

EmbeddedDataPresence
Authored state of an embedded resource’s (data ...) form.
EmbeddedFileOwner
Source owner for an embedded resource declaration.
FontOutlineErrorKind
Stable failure categories for native outline extraction.
PcbFeatureDiagnosticKind
PcbFootprintFeatureSelector
Literal Source selectors; these strings never identify canonical model objects.
SchematicLabelScope
SchematicOccurrenceSelector
SchematicPagePlotErrorKind
SchematicPinShape
TextBezierErrorKind
TextContourErrorKind
Stable failure categories for native contour composition.
TextHorizontalAlignment
Horizontal placement of a single realized text line.
TextShapingErrorKind
Stable failure categories for native shaping.
TextVerticalAlignment
Vertical placement of a single realized text line.

Constants§

ENGINE_VERSION
Version of the Rust KiCad Monkey engine producing reusable core artifacts.
FONT_OUTLINE_ENGINE
Outline implementation and upstream parser version pinned by this workspace.
HINTED_FONT_OUTLINE_ENGINE
Safe-Rust hinted outline backend used for final KiCad cache parity.
SCHEMATIC_IU_PER_MM
TEXT_SHAPING_ENGINE
Shaping implementation and upstream compatibility level pinned by this workspace.

Functions§

effective_pcb_arc_geometry
Return (start IU, mid IU, end IU, centre IU, radius IU, start degrees, sweep degrees) in Source right/down coordinates. Full circles return 360; zero radius stays explicit. Nonfinite input or an undefined centre refuses.
effective_pcb_shape_arc_geometry
Return normalized start, returned mid, normalized end, center, integer drawing radius, start/end/sweep degrees and endpoint-swap state in Source coordinates. This does not claim the independently configured board-outline approximation.
extract_font_outline_a0
Extract one validated glyph outline without exposing the parser dependency.
flatten_cubic_bezier
Flatten one cubic curve using KiCad’s inflection-aware approximation.
flatten_quadratic_bezier
Flatten one quadratic curve using KiCad’s outline-decomposer approximation.
fracture_text_contours_a0
Normalize duplicate closure points and fracture holes into exterior paths.
is_builtin_stroke_font_face
Match pinned FONT::GetFont’s exact empty-or-KiCad Font prefix test.
keep_upright_draw_angle
Fold locked footprint text’s drawing angle into (-90, 90].
layout_single_line_text_a0
Render one horizontal plain-text line with KiCad alignment, mirroring, and rotation order.
layout_single_line_text_hinted_a0
Render one horizontal plain-text line using KiCad-compatible embedded hinting.
pcb_shape_arc_input_points
Original parser-unit input points only; no centre, orientation or drawing.
prettify_kicad_source
Lay out KiCad S-expression text as KiCad itself saves it. Token spelling is kept; whitespace outside strings is replaced. KiCad-saved files come back unchanged.
project_plotter_operation_a0
project_schematic_page_plot_artifact_a0
project_schematic_plot_document_a0
resolved_dimension_measurement_mm
Portable measurement in mm. Center/leader drawing marks have no measurement. A radial dimension measures its center-to-point distance, as an aligned one measures its two points. This operation does not alter source witness points, styles or authored text.
resolved_dimension_points_iu
Source integer witness points, without modifying source coordinates.
schematic_page_plot_document
shape_text_a0
Shape one validated a0 input against an out-of-band font buffer.
shape_text_contours_a0
Shape and place one plain text run using one reusable outline face.
shape_text_contours_hinted_a0
Shape and place one plain text run using KiCad-compatible embedded hinting.