use-friend 0.1.0

Typed Fellow Friends metadata model for RustUse fixture data
Documentation
  • Coverage
  • 100%
    54 out of 54 items documented1 out of 9 items with examples
  • Size
  • Source code size: 15.08 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 751.42 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-rustacean
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-friend

use-friend defines the core Fellow Friends data model for RustUse fixture records.

It provides a small Friend struct, compact taxonomy enums, helper methods, display labels, and optional serde support for serialization fixtures. The crate contains metadata primitives only; no artwork, logos, SVGs, images, or binary assets are included.

Example

use use_friend::{FigureKind, Friend, IdentityKind, TechnologyKind};

let ferris = Friend {
    id: "rust-ferris",
    name: "Ferris",
    ecosystem: "Rust",
    technology_kind: TechnologyKind::ProgrammingLanguage,
    identity_kind: IdentityKind::UnofficialMascot,
    figure_kind: FigureKind::Animal,
    form: Some("crab"),
    tags: &["rust", "crab", "community"],
    notes: "Friendly crab associated with the Rust community.",
};

assert!(ferris.matches_ecosystem("rust"));
assert!(ferris.has_tag("community"));
assert_eq!(ferris.slug(), "rust-ferris");

License

Licensed under MIT OR Apache-2.0.