1 unstable release

0.1.0 Jul 27, 2024

#713 in Filesystem

Download history 190/week @ 2024-07-22 600/week @ 2024-07-29 712/week @ 2024-08-05 256/week @ 2024-08-12 661/week @ 2024-08-19 390/week @ 2024-08-26 627/week @ 2024-09-02

2,005 downloads per month
Used in 4 crates (2 directly)

MIT/Apache

25KB
569 lines

rewriter

Rust utilities for rewriting files

Main exports

  • Rewriter type: for rewriting the contents of files

  • Backup type: restore a file's contents when dropped, unless explicitly disabled

  • Span type: names a region of a file, similar to proc-macro2::Span

  • LineColumn type: names a point in a file, similar to proc-macro2::LineColumn

  • Span and LineColumn traits: allow span and line-column types to be used with this library

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.6–9.5MB
~112K SLoC