use-package 0.0.1

Primitive electronic package vocabulary for RustUse
Documentation
  • Coverage
  • 62.86%
    22 out of 35 items documented1 out of 16 items with examples
  • Size
  • Source code size: 11.73 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 884.92 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-package

Primitive electronic package vocabulary.

use-package describes names such as DIP-8, SOIC-16, QFN-32, BGA-256, TO-220, SOT-23, 0603, and 0805. It does not model exact footprint geometry, parse EDA footprint files, or implement PCB layout behavior.

Example

use use_package::{PackageKind, PackageName, PinCount};

let name = PackageName::new("SOIC-16")?;
let count = PinCount::new(16)?;
let kind: PackageKind = "soic".parse()?;

assert_eq!(name.as_str(), "SOIC-16");
assert_eq!(count.get(), 16);
assert_eq!(kind.to_string(), "soic");
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

Use this crate for compact package metadata. Full geometry, EDA file formats, and PCB layout behavior are out of scope.