oak-source-map
A high-performance Source Map v3 implementation for Rust.
Features
- Full Source Map v3 specification support
- VLQ Base64 encoding/decoding
- Zero-copy parsing where possible
- Builder pattern for incremental construction
- Source map composition and manipulation
Example
use ;
// Parse an existing source map
let json = r#"{"version":3,"sources":["foo.js"],"names":[],"mappings":"AAAA"}"#;
let sm = parse?;
// Build a new source map
let mut builder = new;
builder.add_source;
builder.add_mapping;
let output = builder.build;
# Ok::