{"id":16851905,"url":"https://github.com/cad97/rustc-miette-adapter","last_synced_at":"2025-08-17T03:41:58.389Z","repository":{"id":90989841,"uuid":"472158901","full_name":"CAD97/rustc-miette-adapter","owner":"CAD97","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-21T02:27:16.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T15:32:27.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CAD97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-03-21T02:19:42.000Z","updated_at":"2022-03-21T03:06:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"8bfdf38e-592c-4771-923b-a645096637ba","html_url":"https://github.com/CAD97/rustc-miette-adapter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CAD97/rustc-miette-adapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Frustc-miette-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Frustc-miette-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Frustc-miette-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Frustc-miette-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CAD97","download_url":"https://codeload.github.com/CAD97/rustc-miette-adapter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Frustc-miette-adapter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270803531,"owners_count":24648688,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-13T13:34:03.820Z","updated_at":"2025-08-17T03:41:58.346Z","avatar_url":"https://github.com/CAD97.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rustc-miette-adapter\n\nIt's happening 👐\n\n```\n\u003e cargo check --quiet\nwarning: unused import: `path::PathBuf`\n --\u003e src\\lib.rs:7:5\n  |\n7 |     path::PathBuf,\n  |     ^^^^^^^^^^^^^\n  |\n  = note: `#[warn(unused_imports)]` on by default\n\nwarning: unused import: `WrapErr`\n --\u003e src\\main.rs:1:53\n  |\n1 | use miette::{IntoDiagnostic, ReportHandler, Result, WrapErr};\n  |                                                     ^^^^^^^\n  |\n  = note: `#[warn(unused_imports)]` on by default\n\n\u003e cargo check --message-format=json --quiet | .\\target\\debug\\rustc-miette-adapter.exe\nunused_imports\n\n  ⚠ unused import: `path::PathBuf`\n   ╭─[6:1]\n 6 │     fmt::{self, Display},\n 7 │     path::PathBuf,\n   ·     ─────────────\n 8 │     str::FromStr,\n   ╰────\n\nError:\n  ☞ `#[warn(unused_imports)]` on by default\n\nError:\n  ☞ remove the unused import\n   ╭─[5:1]\n 5 │         error::Error,\n 6 │ ╭─▶     fmt::{self, Display},\n 7 │ ╰─▶     path::PathBuf,\n 8 │         str::FromStr,\n   ╰────\n\n\n\n  ⚠ 1 warning emitted\n\n\nunused_imports\n\n  ⚠ unused import: `WrapErr`\n   ╭─[1:1]\n 1 │ use miette::{IntoDiagnostic, ReportHandler, Result, WrapErr};\n   ·                                                     ───────\n 2 │ use rustc_miette_adapter::Diagnostic;\n   ╰────\n\nError:\n  ☞ `#[warn(unused_imports)]` on by default\n\nError:\n  ☞ remove the unused import\n   ╭─[1:1]\n 1 │ use miette::{IntoDiagnostic, ReportHandler, Result, WrapErr};\n   ·                                                   ─────────\n 2 │ use rustc_miette_adapter::Diagnostic;\n   ╰────\n\n\n\n  ⚠ 1 warning emitted\n\n\n\u003e \n```\n\n![image](https://user-images.githubusercontent.com/5992217/159197762-bdb7b80d-62ac-48c5-a5b4-c92f3aec756b.png)\n\n![image](https://user-images.githubusercontent.com/5992217/159197778-f2a1fa63-1a77-45c6-ab0c-5b1fd2220d38.png)\n\n## Motivation\n\nDuh.\n\n## Limitations\n\nMany. Mainly,\n\n- Does a naive translation to miette diagnostics; does not try to be smart about how the mapping is done\n- Cannot handle (single) diagnostics with spans from multiple files\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcad97%2Frustc-miette-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcad97%2Frustc-miette-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcad97%2Frustc-miette-adapter/lists"}