| Crates.io | source_loc |
| lib.rs | source_loc |
| version | 0.99.0 |
| created_at | 2020-01-15 22:08:45.526626+00 |
| updated_at | 2020-01-15 22:08:45.526626+00 |
| description | utility for capturing source file location at compile time |
| homepage | |
| repository | https://github.com/neonphog/source_loc |
| max_upload_size | |
| id | 198869 |
| size | 18,462 |
Utility for capturing source file location at compile time.
Much less overhead than Backtrace, but, of course you don't get a full
backtrace.
use source_loc::source_loc;
let loc = source_loc!();
assert_eq!(
"src/lib.rs:6:11",
&loc.to_string(),
);