rust_mcp_schema/
generated_schema.rs1macro_rules! define_schema_version {
2 (
3 $feature:literal,
4 $mod_name:ident,
5 $schema_path:literal,
6 $utils_path:literal,
7 $schema_mod:ident,
8 $utils_mod:ident
9 ) => {
10 #[cfg(feature = $feature)]
11 #[path = $schema_path]
12 mod $schema_mod;
13
14 #[cfg(all(feature = "schema_utils", feature = $feature))]
15 #[path = $utils_path]
16 mod $utils_mod;
17
18 #[cfg(feature = $feature)]
19 pub mod $mod_name {
20 pub use super::$schema_mod::*;
21
22 #[cfg(feature = "schema_utils")]
23 pub mod schema_utils {
24 pub use super::super::$utils_mod::*;
25 }
26 }
27 };
28}
29
30#[cfg(feature = "2025_06_18")]
32pub use mcp_2025_06_18::*;
33
34#[cfg(feature = "2025_06_18")]
35define_schema_version!(
36 "2025_06_18",
37 mcp_2025_06_18,
38 "generated_schema/2025_06_18/mcp_schema.rs",
39 "generated_schema/2025_06_18/schema_utils.rs",
40 __int_2025_06_18,
41 __int_utils_2025_06_18
42);
43
44#[cfg(feature = "2025_03_26")]
45define_schema_version!(
46 "2025_03_26",
47 mcp_2025_03_26,
48 "generated_schema/2025_03_26/mcp_schema.rs",
49 "generated_schema/2025_03_26/schema_utils.rs",
50 __int_2025_03_26,
51 __int_utils_2025_03_26
52);
53
54#[cfg(feature = "2024_11_05")]
55define_schema_version!(
56 "2024_11_05",
57 mcp_2024_11_05,
58 "generated_schema/2024_11_05/mcp_schema.rs",
59 "generated_schema/2024_11_05/schema_utils.rs",
60 __int_2024_11_05,
61 __int_utils_2024_11_05
62);
63
64#[cfg(feature = "draft")]
65define_schema_version!(
66 "draft",
67 mcp_draft,
68 "generated_schema/draft/mcp_schema.rs",
69 "generated_schema/draft/schema_utils.rs",
70 __int_draft,
71 __int_utils_draft
72);
73
74#[path = "generated_schema/protocol_version.rs"]
75mod protocol_version;
76pub use protocol_version::*;