source_loc 0.99.0

utility for capturing source file location at compile time
Documentation
  • Coverage
  • 57.14%
    4 out of 7 items documented4 out of 4 items with examples
  • Size
  • Source code size: 18.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.43 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • neonphog/source_loc
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • neonphog

Crates.io Crates.io

source_loc

Utility for capturing source file location at compile time. Much less overhead than Backtrace, but, of course you don't get a full backtrace.

Example

use source_loc::source_loc;

let loc = source_loc!();
assert_eq!(
    "src/lib.rs:6:11",
    &loc.to_string(),
);