3 unstable releases

Uses new Rust 2024

new 0.2.0 Apr 29, 2025
0.1.1 Nov 2, 2024
0.1.0 Jul 27, 2024

#241 in Math

Download history 673/week @ 2025-01-08 1139/week @ 2025-01-15 535/week @ 2025-01-22 601/week @ 2025-01-29 1213/week @ 2025-02-05 1009/week @ 2025-02-12 931/week @ 2025-02-19 725/week @ 2025-02-26 1321/week @ 2025-03-05 1601/week @ 2025-03-12 913/week @ 2025-03-19 688/week @ 2025-03-26 1112/week @ 2025-04-02 1186/week @ 2025-04-09 1078/week @ 2025-04-16 972/week @ 2025-04-23

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

MIT/Apache

26KB
608 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

~2–11MB
~129K SLoC