traced_macro 0.1.0

Procedural macro support for traced_error
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 6.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 273.37 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • fawkesLi-lhh

traced_macro

Procedural macro support for traced_error.

This crate provides the #[traced] attribute macro used by traced_error to rewrite ? propagation points and attach source-location trace frames.

Usage

Most users should not depend on this crate directly. Use traced_error instead:

[dependencies]
traced_error = "0.1"

Then import the prelude:

use traced_error::prelude::*;

The macro is re-exported as traced_error::traced and through traced_error::prelude::*.

Repository

traced_macro is published as a separate crates.io package because procedural macros must live in a proc-macro crate. It does not need a separate GitHub repository. The source is maintained in the same workspace as traced_error:

https://github.com/lihaohan/traced_error

License

Licensed under either of MIT or Apache-2.0 at your option.