4 releases

Uses new Rust 2024

0.2.1 Aug 16, 2025
0.2.0 Apr 29, 2025
0.1.1 Nov 2, 2024
0.1.0 Jul 27, 2024

#128 in Procedural macros

Download history 2896/week @ 2025-10-26 3193/week @ 2025-11-02 3069/week @ 2025-11-09 2835/week @ 2025-11-16 3806/week @ 2025-11-23 4336/week @ 2025-11-30 5438/week @ 2025-12-07 4566/week @ 2025-12-14 2438/week @ 2025-12-21 1572/week @ 2025-12-28 3402/week @ 2026-01-04 2708/week @ 2026-01-11 4312/week @ 2026-01-18 3836/week @ 2026-01-25 4642/week @ 2026-02-01 4359/week @ 2026-02-08

17,201 downloads per month
Used in 7 crates (4 directly)

MIT/Apache

27KB
618 lines

rewriter

Rust utilities for rewriting files

Main exports

Features

  • proc-macro2-span: By default, rewriter uses its own Span and LineColumn types. When this feature is enabled, rewriter instead uses the corresponding types from proc-macro2. This feature implies proc-macro2-impl below.

  • proc-macro2-impl: Implement the Span and LineColumn traits for the corresponding types in proc-macro2.

Dependencies

~1.7–7MB
~157K SLoC