# dtolnay/quote

Rust quasi-quoting

Repository: https://github.com/dtolnay/quote
Canonical: https://ross.abutalabs.com/products/quote
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: syn, proc-macro, rust
Last push: 2026-08-22T02:43:11+00:00

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

## Adoption (not part of the score)
Stars 1577, forks 113 (observed 2026-08-28T04:05:06.104334+00:00)

## What it is
A Rust crate providing the quote! macro for turning Rust syntax tree data structures into token streams of source code. It is primarily used for writing procedural macros but is a general-purpose quasi-quoting library.

## Use cases
- generate Rust code inside a procedural macro
- turn syntax tree data structures back into tokens
- interpolate variables into Rust source code templates
- build custom derive macro implementations
- write code-as-data for metaprogramming

## When to choose
- you are writing Rust procedural macros and need to emit token streams
- you want readable, syntax-highlighted code templates for code generation
- you already use syn and need to convert syntax trees back to tokens

## When to avoid
- you need to parse Rust code rather than generate it (use syn)
- you are generating code in a language other than Rust
- you only need simple string-based code generation without token-level fidelity

## Facets
- artifact type: library
- maturity: stable
- function: parser, developer-tools, compiler
- domain: developer-tools, programming-languages, parsers
- platform: rust
- tags: quasi-quoting, proc-macro, token-stream, metaprogramming, syn

## Member repositories
- dtolnay/quote (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:06.104334+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-30T03:57:02.657270+00:00, confidence not recorded.
  - readme: https://github.com/dtolnay/quote (fetched 2026-08-28T04:05:06.104334+00:00, sha 68e1ab79ebc3)
  - registry_crates: https://crates.io/api/v1/crates/quote (fetched 2026-08-29T11:27:13.618443+00:00, sha ccd601aa9450)
- Data as of 2026-08-30T08:39:29.467469+00:00.
