Skip to content

Developing better_erc

The workspace has the crates of the core, erc_model (the board model, value parsing, the netlist and placement comparisons), erc_kicad (KiCad files read by better_erc itself), erc_import (the importer registry with Altium, OrCAD and PnP), erc_analysis (part classes, graph queries, power structure, I2C buses) and erc_checks (the engine, the checks, the report and its formats); better_erc, the library that re-exports them; berc (the command line tool) and better_erc_app (the app, binary better_erc), both on the library. test_schematics holds a small KiCad schematic per check; the differential test exports them with kicad-cli and is skipped with a message where KiCad is not installed.

just test       # all tests
just lint       # clippy with warnings as errors, and the format check
just fmt        # format the code
just run        # start the app
just check      # berc check on the test schematics, against their baseline
just netlists   # export the test schematics to netlists and pictures
just            # list every recipe