chore: rmcp 0.5.0 (#3935)

This commit is contained in:
Jack Amadeo 2025-08-07 21:07:03 -04:00 committed by GitHub
parent 16304121ef
commit 43d6d1a492
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

8
Cargo.lock generated
View file

@ -6988,9 +6988,9 @@ dependencies = [
[[package]]
name = "rmcp"
version = "0.4.1"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ae7b8e0841e6c5e57448784136315356c70eb92d60d5a5a05a209f159083268"
checksum = "2faf35b7d3c4b7f8c21c45bb014011b32a0ce6444bf6094da04daab01a8c3c34"
dependencies = [
"base64 0.22.1",
"chrono",
@ -7016,9 +7016,9 @@ dependencies = [
[[package]]
name = "rmcp-macros"
version = "0.4.1"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "470958f96a5700478601c385ad3d987460372c2223959eddcb682c7273cdfb86"
checksum = "ad9720d9d2a943779f1dc3d47fa9072c7eeffaff4e1a82f67eb9f7ea52696091"
dependencies = [
"darling 0.21.0",
"proc-macro2",

View file

@ -14,7 +14,7 @@ description = "An AI agent"
uninlined_format_args = "allow"
[workspace.dependencies]
rmcp = { version = "0.4.1", features = ["schemars", "auth"] }
rmcp = { version = "0.5.0", features = ["schemars", "auth"] }
# Patch for Windows cross-compilation issue with crunchy
[patch.crates-io]

View file

@ -829,11 +829,11 @@ impl McpSpinners {
spinner.set_message(message.to_string());
}
pub fn update(&mut self, token: &str, value: u32, total: Option<u32>, message: Option<&str>) {
pub fn update(&mut self, token: &str, value: f64, total: Option<f64>, message: Option<&str>) {
let bar = self.bars.entry(token.to_string()).or_insert_with(|| {
if let Some(total) = total {
self.multi_bar.add(
ProgressBar::new((total * 100) as u64).with_style(
ProgressBar::new((total * 100_f64) as u64).with_style(
ProgressStyle::with_template("[{elapsed}] {bar:40} {pos:>3}/{len:3} {msg}")
.unwrap(),
),
@ -842,7 +842,7 @@ impl McpSpinners {
self.multi_bar.add(ProgressBar::new_spinner())
}
});
bar.set_position((value * 100) as u64);
bar.set_position((value * 100_f64) as u64);
if let Some(msg) = message {
bar.set_message(msg.to_string());
}