From 1b549e96b71b73b59610a1225121dfdaad92e1e7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 13:14:56 +0000 Subject: [PATCH 1/2] Bump serde-xml-rs from 0.7.1 to 0.8.1 Bumps [serde-xml-rs](https://github.com/RReverser/serde-xml-rs) from 0.7.1 to 0.8.1. - [Release notes](https://github.com/RReverser/serde-xml-rs/releases) - [Commits](https://github.com/RReverser/serde-xml-rs/compare/0.7.1...0.8.1) --- updated-dependencies: - dependency-name: serde-xml-rs dependency-version: 0.8.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- bluez-async/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2a4d825..d395699 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -473,9 +473,9 @@ dependencies = [ [[package]] name = "serde-xml-rs" -version = "0.7.1" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6560602b989198ebb381e3192c86970116b3b2e13b8b8a39d6d0850e40b6b81" +checksum = "53630160a98edebde0123eb4dfd0fce6adff091b2305db3154a9e920206eb510" dependencies = [ "log", "serde", diff --git a/bluez-async/Cargo.toml b/bluez-async/Cargo.toml index c237a16..27238c0 100644 --- a/bluez-async/Cargo.toml +++ b/bluez-async/Cargo.toml @@ -21,7 +21,7 @@ futures = "0.3.31" itertools = "0.14.0" log = "0.4.27" serde = { version = "1.0.219", features = ["derive"] } -serde-xml-rs = "0.7.1" +serde-xml-rs = "0.8.1" thiserror = "2.0.12" tokio = { version = "1.45.1", features = ["rt"] } uuid = "1.16.0" From 019eaae60dbac3d8fdc7fdd6981ddb687151e56d Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Mon, 30 Jun 2025 16:01:07 +0100 Subject: [PATCH 2/2] Changes for new version of serde-xml-rs. --- bluez-async/src/introspect.rs | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/bluez-async/src/introspect.rs b/bluez-async/src/introspect.rs index fbff7c5..53a89f7 100644 --- a/bluez-async/src/introspect.rs +++ b/bluez-async/src/introspect.rs @@ -5,6 +5,7 @@ use super::BluetoothError; #[derive(Clone, Debug, Deserialize, PartialEq)] pub struct Node { + #[serde(rename = "@name")] pub name: Option, #[serde(rename = "interface", default)] pub interfaces: Vec, @@ -14,6 +15,7 @@ pub struct Node { #[derive(Clone, Debug, Deserialize, PartialEq)] pub struct Interface { + #[serde(rename = "@name")] pub name: String, #[serde(rename = "method", default)] pub methods: Vec, @@ -27,6 +29,7 @@ pub struct Interface { #[derive(Clone, Debug, Deserialize, PartialEq)] pub struct Method { + #[serde(rename = "@name")] pub name: String, #[serde(rename = "arg", default)] pub args: Vec, @@ -36,6 +39,7 @@ pub struct Method { #[derive(Clone, Debug, Deserialize, PartialEq)] pub struct Signal { + #[serde(rename = "@name")] pub name: String, #[serde(rename = "arg", default)] pub args: Vec, @@ -45,9 +49,11 @@ pub struct Signal { #[derive(Clone, Debug, Deserialize, PartialEq)] pub struct Property { + #[serde(rename = "@name")] pub name: String, - #[serde(rename = "type")] + #[serde(rename = "@type")] pub dbustype: String, + #[serde(rename = "@access")] pub access: Access, #[serde(rename = "annotation", default)] pub annotations: Vec, @@ -55,10 +61,11 @@ pub struct Property { #[derive(Clone, Debug, Deserialize, PartialEq)] pub struct MethodArg { + #[serde(rename = "@name")] pub name: Option, - #[serde(rename = "type")] + #[serde(rename = "@type")] pub dbustype: String, - #[serde(default = "default_method_arg_direction")] + #[serde(rename = "@direction", default = "default_method_arg_direction")] pub direction: Direction, #[serde(rename = "annotation", default)] pub annotations: Vec, @@ -66,10 +73,11 @@ pub struct MethodArg { #[derive(Clone, Debug, Deserialize, PartialEq)] pub struct SignalArg { + #[serde(rename = "@name")] pub name: Option, - #[serde(rename = "type")] + #[serde(rename = "@type")] pub dbustype: String, - #[serde(default = "default_signal_arg_direction")] + #[serde(rename = "@direction", default = "default_signal_arg_direction")] pub direction: Direction, #[serde(rename = "annotation", default)] pub annotations: Vec, @@ -85,7 +93,9 @@ fn default_signal_arg_direction() -> Direction { #[derive(Clone, Debug, Deserialize, PartialEq)] pub struct Annotation { + #[serde(rename = "@name")] pub name: String, + #[serde(rename = "@value")] pub value: String, }