| Crates.io | file-location |
| lib.rs | file-location |
| version | 0.1.0 |
| created_at | 2026-01-22 09:14:15.193398+00 |
| updated_at | 2026-01-22 09:14:15.193398+00 |
| description | A library for pointing to a specific location in a file |
| homepage | |
| repository | https://codeberg.org/SDFTDusername/file-location |
| max_upload_size | |
| id | 2061180 |
| size | 13,018 |
file-location is a Rust library for pointing to a specific location in a file.
let area = FileArea::default()
.line_start(1)
.column_start(12)
.column_end(13);
println!("[{}] Expected semicolon", area); // [1:12-13] Expected semicolon
let location = FileLocation::<String>::default()
.file("main.rs".into())
.line(1, 2)
.column_start(12)
.column_end(13);
println!("[{}] Expected semicolon", location); // [main.rs 1-2:12-13] Expected semicolon