chore: bump to rust 1.90.0 (#453)
This commit is contained in:
parent
aff82ed0c4
commit
57fc428c57
7 changed files with 14 additions and 16 deletions
|
|
@ -672,6 +672,7 @@ pub struct InitializeResult {
|
|||
pub type ServerInfo = InitializeResult;
|
||||
pub type ClientInfo = InitializeRequestParam;
|
||||
|
||||
#[allow(clippy::derivable_impls)]
|
||||
impl Default for ServerInfo {
|
||||
fn default() -> Self {
|
||||
ServerInfo {
|
||||
|
|
@ -683,6 +684,7 @@ impl Default for ServerInfo {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::derivable_impls)]
|
||||
impl Default for ClientInfo {
|
||||
fn default() -> Self {
|
||||
ClientInfo {
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ pub enum StreamableHttpProtocolError {
|
|||
MissingSessionIdInResponse,
|
||||
}
|
||||
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub enum StreamableHttpPostResponse {
|
||||
Accepted,
|
||||
Json(ServerJsonRpcMessage, Option<String>),
|
||||
|
|
@ -557,7 +558,7 @@ impl<C: StreamableHttpClient> Worker for StreamableHttpClientWorker<C> {
|
|||
///
|
||||
/// impl StreamableHttpClient for MyHttpClient {
|
||||
/// type Error = MyError;
|
||||
///
|
||||
///
|
||||
/// async fn post_message(
|
||||
/// &self,
|
||||
/// _uri: Arc<str>,
|
||||
|
|
@ -567,7 +568,7 @@ impl<C: StreamableHttpClient> Worker for StreamableHttpClientWorker<C> {
|
|||
/// ) -> Result<rmcp::transport::streamable_http_client::StreamableHttpPostResponse, rmcp::transport::streamable_http_client::StreamableHttpError<Self::Error>> {
|
||||
/// todo!()
|
||||
/// }
|
||||
///
|
||||
///
|
||||
/// async fn delete_session(
|
||||
/// &self,
|
||||
/// _uri: Arc<str>,
|
||||
|
|
@ -576,7 +577,7 @@ impl<C: StreamableHttpClient> Worker for StreamableHttpClientWorker<C> {
|
|||
/// ) -> Result<(), rmcp::transport::streamable_http_client::StreamableHttpError<Self::Error>> {
|
||||
/// todo!()
|
||||
/// }
|
||||
///
|
||||
///
|
||||
/// async fn get_stream(
|
||||
/// &self,
|
||||
/// _uri: Arc<str>,
|
||||
|
|
@ -639,7 +640,7 @@ impl<C: StreamableHttpClient> StreamableHttpClientTransport<C> {
|
|||
///
|
||||
/// impl StreamableHttpClient for MyHttpClient {
|
||||
/// type Error = MyError;
|
||||
///
|
||||
///
|
||||
/// async fn post_message(
|
||||
/// &self,
|
||||
/// _uri: Arc<str>,
|
||||
|
|
@ -649,7 +650,7 @@ impl<C: StreamableHttpClient> StreamableHttpClientTransport<C> {
|
|||
/// ) -> Result<rmcp::transport::streamable_http_client::StreamableHttpPostResponse, rmcp::transport::streamable_http_client::StreamableHttpError<Self::Error>> {
|
||||
/// todo!()
|
||||
/// }
|
||||
///
|
||||
///
|
||||
/// async fn delete_session(
|
||||
/// &self,
|
||||
/// _uri: Arc<str>,
|
||||
|
|
@ -658,7 +659,7 @@ impl<C: StreamableHttpClient> StreamableHttpClientTransport<C> {
|
|||
/// ) -> Result<(), rmcp::transport::streamable_http_client::StreamableHttpError<Self::Error>> {
|
||||
/// todo!()
|
||||
/// }
|
||||
///
|
||||
///
|
||||
/// async fn get_stream(
|
||||
/// &self,
|
||||
/// _uri: Arc<str>,
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ impl From<SessionError> for std::io::Error {
|
|||
fn from(value: SessionError) -> Self {
|
||||
match value {
|
||||
SessionError::Io(io) => io,
|
||||
_ => std::io::Error::new(std::io::ErrorKind::Other, format!("Session error: {value}")),
|
||||
_ => std::io::Error::other(format!("Session error: {value}")),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -687,6 +687,7 @@ impl LocalSessionHandle {
|
|||
|
||||
pub type SessionTransport = WorkerTransport<LocalSessionWorker>;
|
||||
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
#[derive(Debug, Error)]
|
||||
pub enum LocalSessionWorkerError {
|
||||
#[error("transport terminated")]
|
||||
|
|
|
|||
|
|
@ -1458,6 +1458,7 @@ async fn test_elicitation_examples_compile() {
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
// Example from trait documentation
|
||||
#[allow(dead_code)]
|
||||
#[derive(Serialize, Deserialize, JsonSchema)]
|
||||
struct UserProfile {
|
||||
name: String,
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ use rmcp::{
|
|||
use tokio::process::Command;
|
||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||
|
||||
#[allow(clippy::result_large_err)]
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), RmcpError> {
|
||||
// Initialize logging
|
||||
|
|
|
|||
|
|
@ -207,14 +207,6 @@ struct TokenRequest {
|
|||
refresh_token: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
struct UserInfo {
|
||||
sub: String,
|
||||
name: String,
|
||||
email: String,
|
||||
username: String,
|
||||
}
|
||||
|
||||
fn generate_random_string(length: usize) -> String {
|
||||
rand::rng()
|
||||
.sample_iter(&Alphanumeric)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
[toolchain]
|
||||
channel = "1.85"
|
||||
channel = "1.90"
|
||||
components = ["rustc", "rust-std", "cargo", "clippy", "rustfmt", "rust-docs"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue