#tracked #true #tracked-impl

macro tracked-impl

Internal implementation details for tracked

11 releases

0.5.4 Apr 8, 2023
0.5.3 Oct 30, 2022
0.5.2 Jun 4, 2022
0.2.0 Mar 29, 2022

#6 in #tracked

Download history 18/week @ 2024-12-26 24/week @ 2025-01-02 31/week @ 2025-01-09 34/week @ 2025-01-16 32/week @ 2025-01-23 27/week @ 2025-01-30 36/week @ 2025-02-06 16/week @ 2025-02-13 1/week @ 2025-02-20 6/week @ 2025-02-27

473 downloads per month
Used in 2 crates (via tracked)

MIT OR Apache-2.0 OR CC0-1.0

4KB

This crate provides tracked's procedural macro.

Please refer to the tracked crate for details.


tracked

github crates.io docs.rs

A stringly-typed Error that includes #[track_caller] information.

Points you to the location in your code that errored, without the panic!.

Also lets you try an Option or a bool into a Result.

use tracked::tracked;

fn f() -> Option<()> {
    None
}

#[tracked]
fn main() -> Result<(), tracked::StringError> {
    true?;
    f()?;
    Ok(())
}
Error: NoneError in main at src/main.rs:10:8

Dependencies

~180–600KB
~14K SLoC