chore: update Rust toolchain to 1.92 (#797)

This commit is contained in:
Dale Seo 2026-04-09 14:09:59 -04:00 • committed by GitHub
commit 8a8c036ccb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 9 deletions

View file

@ -1545,12 +1545,13 @@ pub enum Role {
} }
/// Tool selection mode (SEP-1577). /// Tool selection mode (SEP-1577).
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)]
#[serde(rename_all = "lowercase")] #[serde(rename_all = "lowercase")]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
#[expect(clippy::exhaustive_enums, reason = "intentionally exhaustive")] #[expect(clippy::exhaustive_enums, reason = "intentionally exhaustive")]
pub enum ToolChoiceMode { pub enum ToolChoiceMode {
/// Model decides whether to use tools /// Model decides whether to use tools
#[default]
Auto, Auto,
/// Model must use at least one tool /// Model must use at least one tool
Required, Required,
@ -1558,12 +1559,6 @@ pub enum ToolChoiceMode {
None, None,
} }
impl Default for ToolChoiceMode {
fn default() -> Self {
Self::Auto
}
}
/// Tool choice configuration (SEP-1577). /// Tool choice configuration (SEP-1577).
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]

View file

@ -19,7 +19,7 @@ use serde::{Deserialize, Serialize};
use serde_json::Value; use serde_json::Value;
use thiserror::Error; use thiserror::Error;
use tokio::sync::{Mutex, RwLock}; use tokio::sync::{Mutex, RwLock};
use tracing::{debug, error, warn}; use tracing::{debug, warn};
use crate::transport::common::http_header::HEADER_MCP_PROTOCOL_VERSION; use crate::transport::common::http_header::HEADER_MCP_PROTOCOL_VERSION;

View file

@ -1,3 +1,3 @@
[toolchain] [toolchain]
channel = "1.90" channel = "1.92"
components = ["rustc", "rust-std", "cargo", "clippy", "rustfmt", "rust-docs"] components = ["rustc", "rust-std", "cargo", "clippy", "rustfmt", "rust-docs"]