{"adoption": {"forks": 138, "observed_at": "2026-08-28T04:06:23.536173+00:00", "stars": 2183}, "canonical_url": "https://ross.abutalabs.com/products/rust-phf", "card": {"archived": false, "artifact_type": "library", "description": "Compile time static maps for Rust", "domain": ["programming-languages", "developer-tools"], "enriched": true, "function": ["serialization", "developer-tools"], "health_score": 99, "homepage": null, "language": "Rust", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["rust-phf/rust-phf"], "name": "rust-phf/rust-phf", "platform": ["rust", "cross-platform"], "pushed_at": "2026-08-24T11:02:41+00:00", "repo": "rust-phf/rust-phf", "stars": 2183, "tags": ["perfect-hash", "compile-time", "static-maps", "no-std", "proc-macros", "lookup-tables", "algorithms"], "topics": ["rust"], "urls": [], "use_cases": ["create static lookup tables at compile time in Rust", "map string keywords to enum values with zero runtime hashing cost", "build static maps in no_std embedded Rust projects", "generate perfect hash tables in build.rs with phf_codegen", "look up operators or tokens by multiple key aliases"], "what_it_is": "Rust-PHF is a Rust library for generating efficient compile-time static maps and sets using perfect hash functions (CHD algorithm by default, with an experimental ptrhash layout). It supports construction via procedural macros (phf_macros) or build-time code generation (phf_codegen), and works in no_std environments.", "when_to_avoid": ["you need mutable or runtime-constructed maps", "your keys are only known at runtime", "you need ordered maps or rich map APIs beyond lookup"], "when_to_choose": ["you need fast, allocation-free static maps or sets known at compile time", "you want zero-cost lookup tables in no_std or embedded environments", "you're writing parsers or interpreters with fixed keyword tables"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/rust-phf", "repo": "rust-phf/rust-phf", "role": "main", "score": 96}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:48:15.515528+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e79b44583fa144225f9bdedd026ac2db6bc818284d71e3f5e776719edc15dfd6", "fetched_at": "2026-08-28T04:06:23.536173+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rust-phf/rust-phf"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:48:15.515528+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e79b44583fa144225f9bdedd026ac2db6bc818284d71e3f5e776719edc15dfd6", "fetched_at": "2026-08-28T04:06:23.536173+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rust-phf/rust-phf"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:48:15.515528+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e79b44583fa144225f9bdedd026ac2db6bc818284d71e3f5e776719edc15dfd6", "fetched_at": "2026-08-28T04:06:23.536173+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rust-phf/rust-phf"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:48:15.515528+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e79b44583fa144225f9bdedd026ac2db6bc818284d71e3f5e776719edc15dfd6", "fetched_at": "2026-08-28T04:06:23.536173+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rust-phf/rust-phf"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:48:15.515528+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e79b44583fa144225f9bdedd026ac2db6bc818284d71e3f5e776719edc15dfd6", "fetched_at": "2026-08-28T04:06:23.536173+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rust-phf/rust-phf"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:48:15.515528+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e79b44583fa144225f9bdedd026ac2db6bc818284d71e3f5e776719edc15dfd6", "fetched_at": "2026-08-28T04:06:23.536173+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rust-phf/rust-phf"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:23.536173+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:48:15.515528+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e79b44583fa144225f9bdedd026ac2db6bc818284d71e3f5e776719edc15dfd6", "fetched_at": "2026-08-28T04:06:23.536173+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rust-phf/rust-phf"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:48:15.515528+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e79b44583fa144225f9bdedd026ac2db6bc818284d71e3f5e776719edc15dfd6", "fetched_at": "2026-08-28T04:06:23.536173+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rust-phf/rust-phf"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:48:15.515528+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e79b44583fa144225f9bdedd026ac2db6bc818284d71e3f5e776719edc15dfd6", "fetched_at": "2026-08-28T04:06:23.536173+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rust-phf/rust-phf"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:48:15.515528+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e79b44583fa144225f9bdedd026ac2db6bc818284d71e3f5e776719edc15dfd6", "fetched_at": "2026-08-28T04:06:23.536173+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rust-phf/rust-phf"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 100, "rhythm": 89}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4611, "days_push": 9, "days_rel": 74, "gap_med": 0.0, "n_releases_24m": 11}, "score": 96, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}