Skip to content

Commit ba3d99b

Browse files
committed
fix feature flags
1 parent 8817d3f commit ba3d99b

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

crates/rust-mcp-macros/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ proc-macro2 = "1.0"
2222

2323
[dev-dependencies]
2424
rust-mcp-schema = { workspace = true, default-features = false }
25+
rust-mcp-sdk = { workspace = true }
2526

2627
[lints]
2728
workspace = true

crates/rust-mcp-macros/tests/macro_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn test_mcp_tool() {
6666
}
6767

6868
#[test]
69-
#[cfg(feature = "2024_11_05")]
69+
#[cfg(all(feature = "2024_11_05", not(feature = "2025_03_26")))]
7070
fn test_mcp_tool() {
7171
#[rust_mcp_macros::mcp_tool(name = "example_tool", description = "An example tool")]
7272
#[derive(rust_mcp_macros::JsonSchema)]

crates/rust-mcp-sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ edition = "2021"
1212

1313
[dependencies]
1414
rust-mcp-schema = { workspace = true, default-features = false }
15-
rust-mcp-transport = { workspace = true, default-features = false, optional = true }
15+
rust-mcp-transport = { workspace = true, default-features = false }
1616
rust-mcp-macros = { workspace = true, optional = true, default-features = false }
1717

1818
tokio.workspace = true

crates/rust-mcp-sdk/src/schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[cfg(feature = "2025_03_26")]
1+
#[cfg(any(feature = "2025_03_26", not(feature = "2024_11_05")))]
22
pub use rust_mcp_schema::*;
33

44
#[cfg(all(feature = "2024_11_05", not(any(feature = "2025_03_26"))))]

crates/rust-mcp-transport/src/schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[cfg(feature = "2025_03_26")]
1+
#[cfg(any(feature = "2025_03_26", not(feature = "2024_11_05")))]
22
pub use rust_mcp_schema::*;
33

44
#[cfg(all(feature = "2024_11_05", not(any(feature = "2025_03_26"))))]

0 commit comments

Comments
 (0)