diff --git a/sample/src/main.rs b/sample/src/main.rs index e98ae86..7e4f183 100644 --- a/sample/src/main.rs +++ b/sample/src/main.rs @@ -5,6 +5,9 @@ // This macro supports visibility-specifiers, like `build_info!(pub fn how_this_crate_was_built)`. build_info::build_info!(fn build_info); +// The same, but as a public function: +build_info::build_info!(pub fn build_info); + fn main() { // We can now either use the `build_info` function to work with the collected data at runtime... println!("{:#?}", build_info());