fix: gate optional dependencies behind feature flags (#672)
This commit is contained in:
parent
98eef440c6
commit
91e208efb7
1 changed files with 23 additions and 4 deletions
|
|
@ -1,12 +1,14 @@
|
|||
use futures::{FutureExt, future::BoxFuture};
|
||||
use thiserror::Error;
|
||||
|
||||
#[cfg(feature = "server")]
|
||||
use crate::model::ServerJsonRpcMessage;
|
||||
use crate::{
|
||||
error::ErrorData as McpError,
|
||||
model::{
|
||||
CancelledNotification, CancelledNotificationParam, Extensions, GetExtensions, GetMeta,
|
||||
JsonRpcError, JsonRpcMessage, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, Meta,
|
||||
NumberOrString, ProgressToken, RequestId, ServerJsonRpcMessage,
|
||||
NumberOrString, ProgressToken, RequestId,
|
||||
},
|
||||
transport::{DynamicTransportError, IntoTransport, Transport},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue