# TedDriggs/darling

A Rust proc-macro attribute parser

Repository: https://github.com/TedDriggs/darling
Canonical: https://ross.abutalabs.com/products/teddriggs-darling
Language: Rust
License: MIT
License Family: permissive
Topics: rust, proc-macro
Last push: 2026-08-20T15:12:11+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 98, longevity 100
- inputs: {"age_days": 3410, "days_push": 13, "days_rel": 13, "gap_med": 22.0, "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 1265, forks 95 (observed 2026-08-28T04:04:11.015501+00:00)

## What it is
Darling is a Rust proc-macro helper library that lets macro authors declaratively parse attribute arguments into structs, inspired by serde's derive API. It provides traits like FromMeta and FromDeriveInput with built-in validation and helpful error messages.

## Use cases
- parse proc-macro attributes into structs in rust
- build custom derive macros with configurable options
- get good error messages for macro attribute mistakes
- extract meta items from derive input
- implement FromMeta trait for attribute parsing

## When to choose
- you're writing a Rust proc-macro or custom derive and need attribute parsing
- you want serde-like declarative parsing of macro options
- you need automatic validation and 'did you mean' suggestions for misspelled attributes

## When to avoid
- you need a general-purpose argument parser for CLIs
- your macro doesn't take attributes or options
- you're not writing Rust proc-macros

## Facets
- artifact type: library
- maturity: active
- function: parser, serialization, developer-tools
- domain: developer-tools, parsers, programming-languages
- platform: rust, cross-platform
- tags: proc-macro, derive-macros, attribute-parsing, syn, serde-inspired

## Member repositories
- TedDriggs/darling (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:11.015501+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-30T05:03:50.271244+00:00, confidence not recorded.
  - readme: https://github.com/TedDriggs/darling (fetched 2026-08-28T04:04:11.015501+00:00, sha abef77b6a40b)
  - registry_crates: https://crates.io/api/v1/crates/darling (fetched 2026-08-29T12:15:44.490016+00:00, sha 3807057bf466)
- Data as of 2026-08-30T08:39:29.467469+00:00.
