1 unstable release
0.1.0 | Jul 27, 2024 |
---|
#713 in Filesystem
2,005 downloads per month
Used in 4 crates
(2 directly)
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 toproc-macro2::Span
-
LineColumn
type: names a point in a file, similar toproc-macro2::LineColumn
-
Span
andLineColumn
traits: allow span and line-column types to be used with this library
Features
-
proc-macro2-span
: By defaultrewriter
, uses its ownSpan
andLineColumn
types. When this feature is enabled,rewriter
instead uses the corresponding types fromproc-macro2
. This feature impliesproc-macro2-impl
below. -
proc-macro2-impl
: Implement theSpan
andLineColumn
traits for the corresponding types inproc-macro2
.
Dependencies
~1.6–9.5MB
~112K SLoC