rewriter
Rust utilities for rewriting files
Main exports
-
Rewriter: rewrites a file's contents -
Backup: restores a file's contents when dropped, unless explicitly disabled -
Span: names a region of a file, similar toproc-macro2::Span -
LineColumn: names a point in a file, similar toproc-macro2::LineColumn -
interface::Spanandinterface::LineColumn: traits that span and line-column types must implement to be used with this library
Features
-
proc-macro2-span: By default,rewriteruses its ownSpanandLineColumntypes. When this feature is enabled,rewriterinstead uses the corresponding types fromproc-macro2. This feature impliesproc-macro2-implbelow. -
proc-macro2-impl: Implement theSpanandLineColumntraits for the corresponding types inproc-macro2.