Skip to content

Commit 60d3e77

Browse files
authored
fix: flag schema derive on schemars feature (#966)
1 parent 9e3de34 commit 60d3e77

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/rmcp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ chrono = { version = "0.4.38", default-features = false, features = [
116116
default = ["base64", "macros", "server"]
117117
local = ["rmcp-macros?/local"]
118118
client = ["dep:tokio-stream"]
119-
server = ["transport-async-rw", "dep:schemars", "dep:pastey"]
119+
server = ["transport-async-rw", "schemars", "dep:pastey"]
120120
macros = ["dep:rmcp-macros", "dep:pastey"]
121121
elicitation = ["dep:url"]
122122

crates/rmcp/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub mod transport;
3434
pub use pastey::paste;
3535
#[cfg(all(feature = "macros", feature = "server"))]
3636
pub use rmcp_macros::*;
37-
#[cfg(any(feature = "server", feature = "schemars"))]
37+
#[cfg(feature = "schemars")]
3838
pub use schemars;
3939
#[cfg(feature = "macros")]
4040
pub use serde;

crates/rmcp/src/model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ macro_rules! object {
6666
/// without returning any specific data.
6767
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Copy, Eq)]
6868
#[serde(deny_unknown_fields)]
69-
#[cfg_attr(feature = "server", derive(schemars::JsonSchema))]
69+
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
7070
#[expect(clippy::exhaustive_structs, reason = "intentionally exhaustive")]
7171
pub struct EmptyObject {}
7272

0 commit comments

Comments
 (0)