{"id":26576683,"url":"https://github.com/getsentry/rust-sourcemap","last_synced_at":"2025-05-14T14:02:21.265Z","repository":{"id":8990096,"uuid":"60467117","full_name":"getsentry/rust-sourcemap","owner":"getsentry","description":"A library for rust that implements basic sourcemap handling","archived":false,"fork":false,"pushed_at":"2025-04-23T11:30:17.000Z","size":4624,"stargazers_count":234,"open_issues_count":16,"forks_count":33,"subscribers_count":52,"default_branch":"master","last_synced_at":"2025-04-23T12:29:23.681Z","etag":null,"topics":["tag-production"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getsentry.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":["https://sentry.io/pricing/","https://sentry.io/"]}},"created_at":"2016-06-05T15:32:17.000Z","updated_at":"2025-04-23T11:30:21.000Z","dependencies_parsed_at":"2023-01-14T11:51:29.149Z","dependency_job_id":"4a40cccc-f40f-45d4-8c35-ab52582b371c","html_url":"https://github.com/getsentry/rust-sourcemap","commit_stats":{"total_commits":212,"total_committers":23,"mean_commits":9.217391304347826,"dds":0.3160377358490566,"last_synced_commit":"6088d5e6ec7212332bf91ea82f91f7f3eac4e848"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Frust-sourcemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Frust-sourcemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Frust-sourcemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Frust-sourcemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getsentry","download_url":"https://codeload.github.com/getsentry/rust-sourcemap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254159140,"owners_count":22024558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["tag-production"],"created_at":"2025-03-23T03:26:01.991Z","updated_at":"2025-05-14T14:02:21.202Z","avatar_url":"https://github.com/getsentry.png","language":"Rust","funding_links":["https://sentry.io/pricing/","https://sentry.io/"],"categories":[],"sub_categories":[],"readme":"# sourcemap\n\nThis library implements basic processing of JavaScript sourcemaps.\n\n## Installation\n\nThe crate is called sourcemap and you can depend on it via cargo:\n\n```toml\n[dependencies]\nsourcemap = \"*\"\n```\n\nIf you want to use the git version:\n\n```toml\n[dependencies.sourcemap]\ngit = \"https://github.com/getsentry/rust-sourcemap.git\"\n```\n\n## Basic Operation\n\nThis crate can load JavaScript sourcemaps from JSON files.  It uses\n`serde` for parsing of the JSON data.  Due to the nature of sourcemaps\nthe entirety of the file must be loaded into memory which can be quite\nmemory intensive.\n\nUsage:\n\n```rust\nuse sourcemap::SourceMap;\nlet input: \u0026[_] = b\"{\n    \\\"version\\\":3,\n    \\\"sources\\\":[\\\"coolstuff.js\\\"],\n    \\\"names\\\":[\\\"x\\\",\\\"alert\\\"],\n    \\\"mappings\\\":\\\"AAAA,GAAIA,GAAI,EACR,IAAIA,GAAK,EAAG,CACVC,MAAM\\\"\n}\";\nlet sm = SourceMap::from_reader(input).unwrap();\nlet token = sm.lookup_token(0, 0).unwrap(); // line-number and column\nprintln!(\"token: {}\", token);\n```\n\n## Features\n\nFunctionality of the crate can be turned on and off by feature flags.  This is the\ncurrent list of feature flags:\n\n* `ram_bundle`: turns on RAM bundle support\n\n\nLicense: BSD-3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Frust-sourcemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetsentry%2Frust-sourcemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Frust-sourcemap/lists"}