use-component 0.0.1

Primitive electronic component identity and classification for RustUse
Documentation
  • Coverage
  • 62.5%
    20 out of 32 items documented1 out of 17 items with examples
  • Size
  • Source code size: 12.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 792.8 kB 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-component

Primitive electronic component identity and classification.

use-component stores labels such as R1, C4, U2, D3, J1, and SW1 without turning them into schematic, BOM, inventory, or component database records.

Example

use use_component::{ComponentKind, ReferenceDesignator};

let reference = ReferenceDesignator::new("R1")?;
let kind: ComponentKind = "resistor".parse()?;

assert_eq!(reference.as_str(), "R1");
assert_eq!(kind.to_string(), "resistor");
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

Use this crate for small component labels, values, and classification. It does not model schematics, BOMs, inventory, or component databases.