{"id":17043702,"url":"https://github.com/kaleidawave/source-map","last_synced_at":"2025-04-12T15:11:49.544Z","repository":{"id":57668002,"uuid":"364689815","full_name":"kaleidawave/source-map","owner":"kaleidawave","description":"Utilities for building source maps (v3) for a compiler","archived":false,"fork":false,"pushed_at":"2024-05-21T17:04:13.000Z","size":155,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T15:11:45.036Z","etag":null,"topics":["compiler","rust","source-maps"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaleidawave.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2021-05-05T19:50:17.000Z","updated_at":"2024-08-13T23:12:26.000Z","dependencies_parsed_at":"2023-01-22T02:02:40.978Z","dependency_job_id":"57d5db07-b95e-45cc-906c-53ccb93a2eec","html_url":"https://github.com/kaleidawave/source-map","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":0.4,"last_synced_commit":"2e7a2086995a4ca594012eb7878aa6a056245f4a"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Fsource-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Fsource-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Fsource-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Fsource-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaleidawave","download_url":"https://codeload.github.com/kaleidawave/source-map/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586244,"owners_count":21128998,"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":["compiler","rust","source-maps"],"created_at":"2024-10-14T09:30:18.982Z","updated_at":"2025-04-12T15:11:49.524Z","avatar_url":"https://github.com/kaleidawave.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Source map\r\n\r\n[![crates.io badge](https://img.shields.io/crates/v/source-map?style=flat-square)](https://crates.io/crates/source-map)\r\n[![docs.rs badge](https://img.shields.io/docsrs/source-map?style=flat-square)](https://docs.rs/source-map/latest)\r\n\r\nUtilities for building source maps (v3), handling source location representations and source files.\r\n\r\n## Includes\r\n\r\n- `SpanWithSource`, a structure which represents a section of a specific source\r\n- `SpanWithoutSource`, a structure which represents a general section without a specific source\r\n- `SourceId`, a identifier for a source file\r\n- `StringWithOptionalSourceMap`, along with the `ToString` trait makes generating string representations with and adding source markings trivial\r\n- A `lsp-types-morphisms` feature which allows conversion of position type to [lsp-types](https://docs.rs/crate/lsp-types/latest)\r\n- The `MapFileStore` struct and the `FileSystem` trait for storing source files and other information\r\n- Utilities for turning byte indices into line and column information\r\n\r\n## Source map generation example\r\n\r\nSee [generated example on GitHub actions](https://github.com/kaleidawave/source-map/actions/workflows/example.yml).\r\n\r\n```shell\r\ngit clone https://github.com/kaleidawave/source-map\r\ncd source-map\r\ncargo run -F inline-source-map --example source_map_creation -- LICENSE LICENSE.map\r\n```\r\n\r\nView pairings generated by uploading `LICENSE.map` to [evan w's source map visualizer](https://evanw.github.io/source-map-visualization/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaleidawave%2Fsource-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaleidawave%2Fsource-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaleidawave%2Fsource-map/lists"}