{"id":24055881,"url":"https://github.com/instrumentisto/tracerr-rs","last_synced_at":"2025-10-28T08:44:44.922Z","repository":{"id":36274227,"uuid":"222898213","full_name":"instrumentisto/tracerr-rs","owner":"instrumentisto","description":"Custom compile time captured error tracing for Rust","archived":false,"fork":false,"pushed_at":"2025-04-04T08:58:09.000Z","size":83,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T09:55:41.427Z","etag":null,"topics":["rust","rust-backtrace","rust-error","rust-stacktrace","rust-tracerr","rust-tracing"],"latest_commit_sha":null,"homepage":"https://docs.rs/tracerr","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/instrumentisto.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-20T09:20:16.000Z","updated_at":"2025-04-04T08:58:12.000Z","dependencies_parsed_at":"2024-05-02T15:41:15.809Z","dependency_job_id":"1dbc33f7-e91b-4a3f-a0e1-8cbf50d1b35f","html_url":"https://github.com/instrumentisto/tracerr-rs","commit_stats":{"total_commits":53,"total_committers":3,"mean_commits":"17.666666666666668","dds":0.09433962264150941,"last_synced_commit":"a29e3dbe369d83867353d9c20459852090892488"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instrumentisto%2Ftracerr-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instrumentisto%2Ftracerr-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instrumentisto%2Ftracerr-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instrumentisto%2Ftracerr-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/instrumentisto","download_url":"https://codeload.github.com/instrumentisto/tracerr-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250337914,"owners_count":21414102,"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":["rust","rust-backtrace","rust-error","rust-stacktrace","rust-tracerr","rust-tracing"],"created_at":"2025-01-09T04:31:58.795Z","updated_at":"2025-10-28T08:44:44.908Z","avatar_url":"https://github.com/instrumentisto.png","language":"Rust","readme":"tracerr\n=======\n\n[![crates.io](https://img.shields.io/crates/v/tracerr.svg \"crates.io\")](https://crates.io/crates/tracerr)\n[![Rust 1.85+](https://img.shields.io/badge/rustc-1.85+-lightgray.svg \"Rust 1.85+\")](https://blog.rust-lang.org/2025/02/20/Rust-1.85.0.html)\n[![Unsafe Forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance)\\\n[![CI](https://github.com/instrumentisto/tracerr-rs/actions/workflows/ci.yml/badge.svg?branch=main \"CI\")](https://github.com/instrumentisto/tracerr-rs/actions?query=workflow%3ACI+branch%3Amain)\n[![Rust docs](https://docs.rs/tracerr/badge.svg \"Rust docs\")](https://docs.rs/tracerr)\n\n[API Docs](https://docs.rs/tracerr) |\n[Changelog](https://github.com/instrumentisto/tracerr-rs/blob/v0.4.0/CHANGELOG.md)\n\nCustom compile-time captured error tracing for [Rust].\n\n\n\n\n## Usage\n\nThe common rule:\n- Use macro to capture trace frame in the invocation place.\n\n```rust,no_run\nuse tracerr::Traced;\n\nlet err = tracerr::new!(\"my error\"); // captures frame\n\nlet res: Result\u003c(), _\u003e = Err(err)\n    .map_err(tracerr::wrap!()); // captures frame\n\nlet err: Traced\u003c\u0026'static str\u003e = res.unwrap_err();\nassert_eq!(\n    format!(\"{err}\\n{}\", err.trace()),\n    r\"my error\nerror trace:\nrust_out\n  at src/lib.rs:6\nrust_out\n  at src/lib.rs:9\",\n);\n\nlet (val, trace) = err.split();\nassert_eq!(\n    format!(\"{val}\\n{trace}\"),\n    r\"my error\nerror trace:\nrust_out\n  at src/lib.rs:6\nrust_out\n  at src/lib.rs:9\",\n);\n```\n\n\n\n\n## License\n\nCopyright © 2019-2025 Instrumentisto Team, \u003chttps://github.com/instrumentisto\u003e\n\nThis software is subject to the terms of the [Blue Oak Model License 1.0.0](https://github.com/instrumentisto/tracerr-rs/blob/v0.4.0/LICENSE.md). If a copy of the [BlueOak-1.0.0](https://spdx.org/licenses/BlueOak-1.0.0.html) license was not distributed with this file, You can obtain one at \u003chttps://blueoakcouncil.org/license/1.0.0\u003e.\n\n\n\n\n[Rust]: https://rust-lang.org\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstrumentisto%2Ftracerr-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstrumentisto%2Ftracerr-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstrumentisto%2Ftracerr-rs/lists"}