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
// Copyright 2024 Radim Kolar <hsn@sendmail.cz>
//
// SPDX-License-Identifier: MIT
// or
// SPDX-License-Identifier: Apache-2.0
extern crate proc_macro;
use TokenStream;
use parse_macro_input;
use str_array;
// proc macro testing seems to be problematic, can't be done in regular testsuite
// compiler won't allow use of proc_macro::TokenStream outside of macro function:
//
// thread 'tests::test1' panicked at library\proc_macro\src\bridge\client.rs:237:32:
// procedural macro API is used outside of a procedural macro
/** make token stream from string */
/** test macro invocation,
panics
*/