fix: flag schema derive on schemars feature (#966)
This commit is contained in:
parent
9e3de344f4
commit
60d3e77f52
3 changed files with 3 additions and 3 deletions
|
|
@ -116,7 +116,7 @@ chrono = { version = "0.4.38", default-features = false, features = [
|
||||||
default = ["base64", "macros", "server"]
|
default = ["base64", "macros", "server"]
|
||||||
local = ["rmcp-macros?/local"]
|
local = ["rmcp-macros?/local"]
|
||||||
client = ["dep:tokio-stream"]
|
client = ["dep:tokio-stream"]
|
||||||
server = ["transport-async-rw", "dep:schemars", "dep:pastey"]
|
server = ["transport-async-rw", "schemars", "dep:pastey"]
|
||||||
macros = ["dep:rmcp-macros", "dep:pastey"]
|
macros = ["dep:rmcp-macros", "dep:pastey"]
|
||||||
elicitation = ["dep:url"]
|
elicitation = ["dep:url"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ pub mod transport;
|
||||||
pub use pastey::paste;
|
pub use pastey::paste;
|
||||||
#[cfg(all(feature = "macros", feature = "server"))]
|
#[cfg(all(feature = "macros", feature = "server"))]
|
||||||
pub use rmcp_macros::*;
|
pub use rmcp_macros::*;
|
||||||
#[cfg(any(feature = "server", feature = "schemars"))]
|
#[cfg(feature = "schemars")]
|
||||||
pub use schemars;
|
pub use schemars;
|
||||||
#[cfg(feature = "macros")]
|
#[cfg(feature = "macros")]
|
||||||
pub use serde;
|
pub use serde;
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ macro_rules! object {
|
||||||
/// without returning any specific data.
|
/// without returning any specific data.
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Copy, Eq)]
|
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Copy, Eq)]
|
||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
#[cfg_attr(feature = "server", derive(schemars::JsonSchema))]
|
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
|
||||||
#[expect(clippy::exhaustive_structs, reason = "intentionally exhaustive")]
|
#[expect(clippy::exhaustive_structs, reason = "intentionally exhaustive")]
|
||||||
pub struct EmptyObject {}
|
pub struct EmptyObject {}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue