Crates.io | rewriter |
lib.rs | rewriter |
version | 0.1.1 |
source | src |
created_at | 2024-07-27 10:40:29.732664 |
updated_at | 2024-11-02 16:03:23.564158 |
description | Rust utilities for rewriting files |
homepage | |
repository | https://github.com/smoelius/rewriter |
max_upload_size | |
id | 1317174 |
size | 28,998 |
Rust utilities for rewriting files
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 to proc-macro2::Span
LineColumn
: names a point in a file, similar to proc-macro2::LineColumn
interface::Span
and interface::LineColumn
: traits that span and line-column types must implement to be used with this library
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
.