Created
June 28, 2025 21:17
-
-
Save freedomtowin/94d0eef7ba018825b280b4b5f2a633ec to your computer and use it in GitHub Desktop.
Example of creating a Gist using Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use my_proc_macros_lib::CustomDerive; | |
| #[derive(CustomDerive)] | |
| struct Person { | |
| name: String, | |
| age: u32, | |
| } | |
| pub fn test_custom_derive() { | |
| let _p = Person::default(); | |
| Person::hello_macro(&_p); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment