add meson support

This commit is contained in:
John Turner
2025-11-15 21:08:39 +00:00
parent c0bd0c9efd
commit fdf1f09d6f
7 changed files with 63 additions and 212 deletions

View File

@@ -34,7 +34,7 @@ mod valid;
use proc_macro::TokenStream;
use proc_macro2::{Ident, Span};
use quote::{ToTokens, TokenStreamExt as _};
use syn::{parse_macro_input, DeriveInput};
use syn::{DeriveInput, parse_macro_input};
#[proc_macro_derive(Error, attributes(backtrace, error, from, source))]
pub fn derive_error(input: TokenStream) -> TokenStream {
@@ -47,9 +47,6 @@ struct private;
impl ToTokens for private {
fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) {
tokens.append(Ident::new(
concat!("__private", env!("CARGO_PKG_VERSION_PATCH")),
Span::call_site(),
));
tokens.append(Ident::new(concat!("__private"), Span::call_site()));
}
}