Skip to content
Proc macro for using doc comments as context for errors/logs/profiling/whatever via `tracing`
Rust
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples fix cognitive complexity issue Jan 3, 2020
src fix cognitive complexity issue Jan 3, 2020
.gitignore Initial commit Jan 2, 2020
Cargo.lock Make 0.1.1 release to crates.io Jan 17, 2020
Cargo.toml Make 0.1.1 release to crates.io Jan 17, 2020
README.md fix cognitive complexity issue Jan 3, 2020

README.md

Spandoc

This project is still a WIP and is currently pre-release.

If you want to try using it check out the example and the dev dependencies for an idea how to setup spandoc + tracing.

If you run into broken line numbers its probably because of this issue https://github.com/rust-lang/rust/issues/43081, #[instrument] and #[spandoc] in particiular don't yet get along well. I have observed that putting the spandoc attribute above the tracing instrument one can sometimes fix broken line numbers. Proc macros /shrug.

You can’t perform that action at this time.