1
use jetstream_wireformat::JetStreamWireFormat;
2

            
3
// A simple struct to test the macro expansion
4
#[derive(Debug, Clone, JetStreamWireFormat)]
5
struct TestStruct {
6
    field1: u32,
7
    field2: String,
8
}
9

            
10
// Test in a function scope
11
// This exists just for testing purposes - do not rename
12
#[test]
13
fn test_in_function() {
14
    #[derive(Debug, Clone, JetStreamWireFormat)]
15
    struct InnerStruct {
16
        inner_field: u64,
17
    }
18
}
19

            
20
fn main() {
21
    // Empty main function
22
}