2024-02-16 14:02:50 -06:00
|
|
|
//@ force-host
|
|
|
|
//@ no-prefer-dynamic
|
2024-02-10 11:43:44 -06:00
|
|
|
|
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
|
|
|
|
extern crate proc_macro;
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
|
|
|
|
#[proc_macro_derive(Deserialize)]
|
|
|
|
pub fn deserialize_derive(input: TokenStream) -> TokenStream {
|
|
|
|
"impl Build {
|
|
|
|
fn deserialize() -> Option<u64> {
|
|
|
|
let x: Option<u32> = Some(0);
|
|
|
|
Some(x? + 1)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"
|
|
|
|
.parse()
|
|
|
|
.unwrap()
|
|
|
|
}
|