#sourcemap #symbolic #javascript #stack #process #trace #symbols #sourcemaps #resolve

symbolic-sourcemap

A library to process JavaScript sourcemaps and resolve symbols in minified source code or stack traces

17 stable releases (4 major)

5.1.2 Aug 29, 2018
5.1.0 Jul 30, 2018
5.0.2 May 30, 2018
4.0.0 Apr 12, 2018
1.1.5 Dec 2, 2017
Download history 42/week @ 2018-07-18 24/week @ 2018-07-25 53/week @ 2018-08-01 79/week @ 2018-08-08 61/week @ 2018-08-15 24/week @ 2018-08-22 15/week @ 2018-08-29 27/week @ 2018-09-05 9/week @ 2018-09-12 1/week @ 2018-09-19 45/week @ 2018-09-26 48/week @ 2018-10-03 2/week @ 2018-10-10

162 downloads per month
Used in 1 crate

MIT license

39KB
869 lines

Symbolic

Symbolic is a library written in Rust which is used at Sentry to implement symbolication of native stack traces, sourcemap handling for minified JavaScript and more. It consists of multiple largely independent crates which are bundled together into a C and Python library so it can be used independently of Rust.

What's in the package

Currently it provides the following functionality:

  • Symbolication based on custom cache files (symcache)
  • Symbol cache file generators from:
    • Mach and ELF symbol tables
    • Mach and ELF embedded DWARF data
    • Breakpad Symbol files
  • Demangling support
    • Swift
    • C++
    • Rust
  • JavaScript sourcemap expansion
    • Basic token mapping
    • Heuristics to find original function names based on minified sources
    • Indexed sourcemap to sourcemap merging
  • Proguard function mappings
  • Minidump / Breakpad processing
    • Generate Breakpad symbol files from Mach and ELF
    • Process Minidumps to resolve process state
  • Convenient C and Python library

Source Crates

A lot of functionality exposed by this library come from independent Rust crates for better use:

Additionally we use the following C++ libraries to fill in gaps:

Building and Development

Symbolic comes as a python library with prebuilt wheels for linux and macOS. On other operating systems or when using as rust library, you need to build symbolic manually. This always requires the latest stable Rust and Cargo, as well as a C++11 compiler.

License

Symbolic is licensed under the MIT license. It uses some Apache2 licensed code from Apple for the Swift demangling.

Dependencies

~9.5MB
~232K SLoC