| Crates.io | rewriter |
| lib.rs | rewriter |
| version | 0.2.1 |
| created_at | 2024-07-27 10:40:29.732664+00 |
| updated_at | 2025-08-16 09:31:21.270636+00 |
| description | Rust utilities for rewriting files |
| homepage | |
| repository | https://github.com/smoelius/rewriter |
| max_upload_size | |
| id | 1317174 |
| size | 46,222 |
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.