$ sourcemap
v9.3.0MAJOR UPDATEBasic sourcemap handling for Rust
Downloads: 22.7M
Recent: 3.0M
Versions: 68
Updated: December 4, 2025
Latest Update Summary
Crate
Name: sourcemap New version: 9.3.0 Release date: 2025-12-04T10:27:12.067970Z
Crate readme
Short description This library implements basic processing of JavaScript sourcemaps.
Long description
This crate can load JavaScript sourcemaps from JSON files. It uses serde for parsing of the JSON data. Due to the nature of sourcemaps the entirety of the file must be loaded into memory which can be quite memory intensive.
Features • ram_bundle
Code Examples Add to Cargo.toml
[dependencies]
sourcemap = "*"
[dependencies.sourcemap]
git = "https://github.com/getsentry/rust-sourcemap.git"
Basic usage
use sourcemap::SourceMap;
let input: &[_] = b"{
\"version\":3,
\"sources\":[\"coolstuff.js\"],
\"names\":[\"x\",\"alert\"],
\"mappings\":\"AAAA,GAAIA,GAAI,EACR,IAAIA,GAAK,EAAG,CACVC,MAAM\"
}";
let sm = SourceMap::from_reader(input).unwrap();
let token = sm.lookup_token(0, 0).unwrap(); // line-number and column
println!("token: {}", token);
Links • https://github.com/getsentry/rust-sourcemap.git
https://api.github.com/repos/getsentry/rust-sourcemap/releases/267380443
Release info
Release version:
Release description
Code Examples
Minor update: 9.2.2 → 9.3.0
$ DOWNLOADS TREND
20.5M22.7M
$ VERSION HISTORY
v9.3.0December 4, 2025
v9.2.2June 2, 2025
$ LINKS
$ INSTALL
cargo add sourcemapOr add to Cargo.toml: sourcemap = "9.3.0"