| Crates.io | swamp-source-map |
| lib.rs | swamp-source-map |
| version | 0.1.10 |
| created_at | 2025-03-29 15:01:03.102217+00 |
| updated_at | 2025-03-29 15:01:03.102217+00 |
| description | Source map cache for Swamp |
| homepage | |
| repository | https://github.com/swamp/swamp |
| max_upload_size | |
| id | 1611379 |
| size | 26,107 |
Manages source files for the Swamp programming language compiler, providing mapping between file IDs, paths, and source locations (line/column).
This crate provides the SourceMap struct, which is responsible for:
FileId (u16) to each loaded file.swamp-node) into human-readable line and column numbers.Add this to your Cargo.toml:
[dependencies]
swamp-source-map = "0.1.10"
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/swamp