This is v2 of OneClient. Removed all web-related stuff. Co-Authored-By: Julian Chang <wyvest@polyfrost.org>
12 lines
No EOL
358 B
Rust
12 lines
No EOL
358 B
Rust
#[cfg(feature = "freya")]
|
|
mod freya;
|
|
|
|
#[cfg(feature = "freya")]
|
|
#[proc_macro_derive(IconNamed)]
|
|
pub fn derive_icon_named(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
|
|
let input = syn::parse_macro_input!(input as syn::DeriveInput);
|
|
|
|
freya::expand_icon_named(input)
|
|
.unwrap_or_else(|err| err.to_compile_error())
|
|
.into()
|
|
} |