RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Verbose dumpy helloworld
Cargo.toml: [package] name = "customderive" version = "0.1.1" [lib] proc-macro=true [dependencies] quote="^0.3.12" syn="^0.11.4" src/lib.rs: #![crate_type = "proc-macro"] extern crate proc_macro; use proc_macro::TokenStream; exte...
Minimal dummy custom derive
Cargo.toml: [package] name = "customderive" version = "0.1.0" [lib] proc-macro=true src/lib.rs: #![crate_type = "proc-macro"] extern crate proc_macro; use proc_macro::TokenStream; #[proc_macro_derive(Dummy)] pub fn qqq(input: TokenStream) -> TokenStrea...
Getters and setters
Cargo.toml: [package] name = "gettersetter" version = "0.1.0" [lib] proc-macro=true [dependencies] quote="^0.3.12" syn="^0.11.4" src/lib.rs: #![crate_type = "proc-macro"] extern crate proc_macro; use proc_macro::TokenStream; extern c...
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website