oak-source-map 0.0.7

High-performance Source Map v3 implementation for Rust
Documentation

πŸ—ΊοΈ oak-source-map

Crates.io Documentation

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 representation
  • SourceMapBuilder β€” Incremental map construction
  • SourceMapComposer β€” Map composition for chained transformations
  • SourceMapDecoder β€” Parser for existing source maps
  • vlq β€” VLQ Base64 encoding/decoding utilities
  • mapping β€” 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.