πΊοΈ oak-source-map
High-Performance Source Map v3 Implementation for Rust β A complete, zero-copy Source Map v3 implementation with VLQ encoding/decoding, builder patterns, and map composition.
π― Why oak-source-map?
Source maps are essential for debugging bundled and minified code. oak-source-map provides a high-performance, feature-complete implementation of the Source Map v3 specification, designed for both parsing and generating source maps efficiently.
β¨ Key Features
- π Full v3 Specification Support β Complete implementation of the Source Map v3 format
- β‘ VLQ Base64 Encoding/Decoding β Fast and efficient VLQ processing
- π Zero-Copy Parsing β Minimal memory overhead when parsing existing maps
- ποΈ Builder Pattern β Incremental source map construction
- π Source Map Composition β Combine multiple source maps for chained transformations
- π Mapping Lookup β Efficient line/column mapping queries
- π Serde Integration β Seamless serialization and deserialization
ποΈ Architecture
SourceMapβ Core source map representationSourceMapBuilderβ Incremental map constructionSourceMapComposerβ Map composition for chained transformationsSourceMapDecoderβ Parser for existing source mapsvlqβ VLQ Base64 encoding/decoding utilitiesmappingβ Mapping and segment data structures
π Ecosystem Integration
Used by Oak language tools for debugging support and by bundlers and minifiers in the Rust ecosystem.
π Documentation
For usage examples and API details, see the API documentation.
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.