15 releases (breaking)
new 0.12.0 | Mar 18, 2023 |
---|---|
0.11.2 | Feb 3, 2023 |
0.11.0 | Nov 26, 2022 |
0.8.0 | Apr 26, 2022 |
0.2.0 | Jul 26, 2021 |
#782 in Web programming
247 downloads per month
Used in 4 crates
(2 directly)
33KB
809 lines
Source map
Utilities for building source maps (v3) for a compiler and handling source location representations
Includes
Span
, a structure which represents a section of a specific sourceSourceId
, a identifier for a source fileStringWithSourceMap
, along with theToString
trait makes generating string representations with and adding source markings trivial- With the
lsp-types-morphisms
features makes converting between the position information in lsp-types easy
Example
git clone https://github.com/kaleidawave/source-map
cd source-map
cargo run -F inline-source-map --example source_map_creation -- LICENSE LICENSE.map
View pairings generated by uploading LICENSE.map
to evan w's source map visualizer
Dependencies
~0–760KB
~19K SLoC