Update Rust crate virt to 0.4.0 #154

Merged
pierre merged 2 commits from renovate/virt-0.x into master 2024-08-27 14:12:20 +00:00
3 changed files with 7 additions and 6 deletions

View File

@ -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",

View File

@ -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"

View File

@ -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 })
}