Skip to content

Instantly share code, notes, and snippets.

@freedomtowin
Created June 28, 2025 21:17
Show Gist options
  • Select an option

  • Save freedomtowin/a7e31e68a5890839ad8314a22fe836ed to your computer and use it in GitHub Desktop.

Select an option

Save freedomtowin/a7e31e68a5890839ad8314a22fe836ed to your computer and use it in GitHub Desktop.
Example of creating a Gist using Python
use my_proc_macros_lib::log_entry_and_exit;
#[log_entry_and_exit(time, ret)]
fn compute(x: i32) -> i32 {
x * 2
}
pub fn test_attribute() {
let val = compute(10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment