From c883f13bf8060fbb41354ce7f58ac0c57fcb2558 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 27 Aug 2024 00:33:18 +0000 Subject: [PATCH 1/2] Update Rust crate virt to 0.4.0 --- virtweb_backend/Cargo.lock | 9 +++++---- virtweb_backend/Cargo.toml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/virtweb_backend/Cargo.lock b/virtweb_backend/Cargo.lock index 65c8a35..651a5a8 100644 --- a/virtweb_backend/Cargo.lock +++ b/virtweb_backend/Cargo.lock @@ -3430,19 +3430,20 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "virt" -version = "0.3.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bca379b1d06d60012e5d335bd839b26c2aa84bdbd358e4c02a6e151cf73db81" +checksum = "ea10b64ad18e1dd0cb83a80c8ab761506acb819dbb1af576d4bca357f2fb2a62" dependencies = [ "libc", + "uuid", "virt-sys", ] [[package]] name = "virt-sys" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd39f6e0d0ab3fe7c371fac05c9b6ca72e186f06a2e666fb3b95441091eba2db" +checksum = "c504e459878f09177f41bf2f8bb3e9a8af4fca7a09e73152fee02535d501601c" dependencies = [ "libc", "pkg-config", diff --git a/virtweb_backend/Cargo.toml b/virtweb_backend/Cargo.toml index 4e5e4cb..669ca70 100644 --- a/virtweb_backend/Cargo.toml +++ b/virtweb_backend/Cargo.toml @@ -29,7 +29,7 @@ actix-multipart = "0.7.0" tempfile = "3.10.1" reqwest = { version = "0.12.4", features = ["stream"] } url = "2.5.0" -virt = "0.3.1" +virt = "0.4.0" sysinfo = { version = "0.30.11", features = ["serde"] } uuid = { version = "1.8.0", features = ["v4", "serde"] } lazy-regex = "3.1.0" -- 2.45.2 From c472dfe807e3a6b7c901f324859036bb8dd56c0c Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 27 Aug 2024 14:06:35 +0000 Subject: [PATCH 2/2] Fix compatibility issue --- virtweb_backend/src/actors/libvirt_actor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtweb_backend/src/actors/libvirt_actor.rs b/virtweb_backend/src/actors/libvirt_actor.rs index e73428e..ccb9b03 100644 --- a/virtweb_backend/src/actors/libvirt_actor.rs +++ b/virtweb_backend/src/actors/libvirt_actor.rs @@ -31,7 +31,7 @@ impl LibVirtActor { "Will connect to hypvervisor at address '{}'", hypervisor_uri ); - let conn = Connect::open(hypervisor_uri)?; + let conn = Connect::open(Some(hypervisor_uri))?; Ok(Self { m: conn }) } -- 2.45.2