1 unstable release

0.1.0 Nov 20, 2019

36 downloads per month
Used in 2 crates (via tracers-macros)

MIT/Apache

375KB
6.5K SLoC


Do not reference this crate directly; see the “tracers” crate for further instructions. This crate contains the actual proc-macro=true crate which implements the probing macros. Because the probe! macro is actually a procedural macro but is used in expression position, we must use the proc_macro_hack crate to work around the fact that Rust doesn’t natively support this usage yet. That hack requires that the actual macro be implemented in one crate, then re-exported from a second crate. Thus, to ensure that callers can simply add a dependency on tracers_macros, we make tracers_macros the re-exporting crate and this one, tracers_macros_hack, the actual proc macro crate. Confused? Me too.

Dependencies

~4–14MB
~191K SLoC