use-board 0.0.1

Primitive board-level vocabulary for RustUse electronics crates
Documentation
  • Coverage
  • 61.54%
    24 out of 39 items documented1 out of 17 items with examples
  • Size
  • Source code size: 13.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.06 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-electronics
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-board

Primitive board-level vocabulary.

use-board describes board IDs, names, sides, layers, layer counts, and assembly sides. It does not implement PCB layout, routing, board-file parsing, geometry calculation, or manufacturing output generation.

Example

use use_board::{BoardLayer, BoardName, BoardSide, LayerCount};

let board = BoardName::new("sensor board")?;
let layers = LayerCount::new(4)?;
let side: BoardSide = "top".parse()?;
let layer: BoardLayer = "inner-copper-1".parse()?;

assert_eq!(board.as_str(), "sensor board");
assert_eq!(layers.get(), 4);
assert_eq!(side.to_string(), "top");
assert_eq!(layer.to_string(), "inner-copper-1");
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

Use this crate for simple board vocabulary. PCB layout, routing, geometry, file parsing, and manufacturing outputs are out of scope.