# dtolnay/inventory

Typed distributed plugin registration

Repository: https://github.com/dtolnay/inventory
Canonical: https://ross.abutalabs.com/products/dtolnay-inventory
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-08-22T02:40:53+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 77, longevity 100
- inputs: {"age_days": 2809, "days_push": 11, "days_rel": 156, "gap_med": 26.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1338, forks 58 (observed 2026-08-28T04:04:25.815185+00:00)

## What it is
A Rust crate providing typed distributed plugin registration, allowing plugins to be registered into a registry from any source file linked into an application without a central list. It uses macros like collect! and submit! to gather statically registered values at link time.

## Use cases
- register command line flags from any source file without a central list
- build a plugin registry that downstream crates can contribute to
- avoid merge conflicts in large-scale codebases with distributed registration
- iterate over all statically registered plugin instances at runtime
- collect implementations or extensions across multiple crates

## When to choose
- you need distributed registration of typed values across crates in Rust
- you want to avoid maintaining a central list of plugins or flags
- you are building extensible frameworks or CLI flag systems in Rust

## When to avoid
- you need runtime dynamic plugin loading from shared libraries
- your project is not written in Rust
- you need plugins registered conditionally at runtime rather than statically

## Facets
- artifact type: library
- maturity: stable
- function: plugin-system, serialization
- domain: developer-tools, programming-languages
- platform: rust, cross-platform
- tags: distributed-registration, static-initialization, rust-crate, linkage, automation

## Member repositories
- dtolnay/inventory (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:25.815185+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:43:59.435767+00:00, confidence not recorded.
  - readme: https://github.com/dtolnay/inventory (fetched 2026-08-28T04:04:25.815185+00:00, sha 74e3404b3da5)
  - registry_crates: https://crates.io/api/v1/crates/inventory (fetched 2026-08-29T12:03:02.345740+00:00, sha ef6775d48377)
- Data as of 2026-08-30T08:39:29.467469+00:00.
