1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
extern crate proc_macro;
use ::quote;
use ::syn::{
self,
spanned::Spanned,
};
#[cfg(not(feature = "proc-macro-hygiene"))]
use ::syn::parse::Parse;
macro_rules! throw {
($span:expr => $message:expr) => (
return proc_macro::TokenStream::from(
quote::quote_spanned! {$span=>
compile_error!($message)
}
)
);
($message:expr) => (
return proc_macro::TokenStream::from(
quote::quote! {
compile_error!($message)
}
)
);
}
mod kw {
::syn::custom_keyword!{
concat_bytes
}
::syn::custom_keyword!{
as_bytes
}
::syn::custom_keyword!{
identity_non_null
}
::syn::custom_keyword!{
c_str
}
}
type CommaExprs = syn::punctuated::Punctuated<syn::Expr, syn::Token![,]>;
include!{
"concat_bytes.rs"
}
include!{
"as_bytes.rs"
}
include!{
"identity_non_null.rs"
}
include!{
"c_str.rs"
}