mmastrac/linktime
Link-time initialization, destruction, scattered data collection macros for Rust observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 97
- Release rhythm 98
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 2827
- days_rel: 19
- days_push: 19
- n_releases_24m: 46
Adoption not part of the score
1071 stars · 79 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A set of Rust crates providing link-time initialization, destruction, and scattered data collection macros (ctor, dtor, link-section, scattered-collect). It lets Rust code run before/after main and collect items across a linked binary via linker-managed sections.
Use cases
- run initialization code before main in rust
- register plugins or handlers at link time
- collect scattered items into a single section across a binary
- run cleanup code after main exits
- build a registry of items without explicit registration calls
When to choose
- you need C-style constructor/destructor semantics in Rust
- you want linker-managed registries or typed sections across crates
- you need code to run before main for setup or side effects
When to avoid
- you only need simple lazy initialization with std::sync::Once or LazyLock
- you want portable code without platform-specific linker tricks
- you need initialization ordering guarantees across arbitrary crates
Facets
library · maturity active
developer-tools plugin-system concurrency developer-tools programming-languages rust cross-platform windows macros ctor dtor link-section linker dylib rust-crate procedural-macros automation linux macos
2 sources
- readme: https://github.com/mmastrac/linktime · fetched 2026-08-28 · 1f82940907da
- registry_crates: https://crates.io/api/v1/crates/linktime · fetched 2026-08-29 · 8a446c8cb3f9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mmastrac/linktime | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="mmastrac/linktime")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem