1
1
mod test_deserialize {
2
2
#[ cfg( feature = "2024_11_05" ) ]
3
3
use rust_mcp_schema:: mcp_2024_11_05:: schema_utils:: * ;
4
- #[ cfg( feature = "2025_03_26" ) ]
5
- use rust_mcp_schema:: mcp_2025_03_26:: schema_utils:: * ;
6
- #[ cfg( feature = "draft" ) ]
7
- use rust_mcp_schema:: mcp_draft:: schema_utils:: * ;
8
4
#[ cfg( any( feature = "latest" , feature = "2025_06_18" ) ) ]
9
- use rust_mcp_schema:: schema_utils:: * ;
10
-
11
5
#[ cfg( feature = "2024_11_05" ) ]
12
6
use rust_mcp_schema:: mcp_2024_11_05:: * ;
13
7
#[ cfg( feature = "2025_03_26" ) ]
8
+ use rust_mcp_schema:: mcp_2025_03_26:: schema_utils:: * ;
9
+ #[ cfg( feature = "2025_03_26" ) ]
14
10
use rust_mcp_schema:: mcp_2025_03_26:: * ;
15
11
#[ cfg( feature = "draft" ) ]
12
+ use rust_mcp_schema:: mcp_draft:: schema_utils:: * ;
13
+ #[ cfg( feature = "draft" ) ]
16
14
use rust_mcp_schema:: mcp_draft:: * ;
17
15
#[ cfg( any( feature = "latest" , feature = "2025_06_18" ) ) ]
18
16
use rust_mcp_schema:: * ;
@@ -39,7 +37,7 @@ mod test_deserialize {
39
37
let json_deserialized = serde_json:: to_string ( & deserialized) . expect ( "Failed to serialize deserialized object" ) ;
40
38
41
39
// Compare the JSON strings to ensure consistency
42
- assert_eq ! ( json, json_deserialized, "JSON serialization mismatch for {:?}" , original ) ;
40
+ assert_eq ! ( json, json_deserialized, "JSON serialization mismatch for {original :?}" ) ;
43
41
}
44
42
45
43
#[ cfg( not( feature = "2024_11_05" ) ) ]
0 commit comments