Skip to content

rust utility for capturing source file location at compile time

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

neonphog/source_loc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(),
);

About

rust utility for capturing source file location at compile time

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages