This upgrades the Cargo workspace to Rust edition 2024 to keep the code base clean and up to date. The commit only contains the adjustments to the Cargo.toml files and basic compiler error fixes. Also, this commit includes new SAFETY comments as discussed in [1]. The changes were not automatically fixed by `cargo fix --edition` but needed manual adjustments. Apart from that, all formatting and clippy adjustments follow in subsequent commits. * As only exception, workspace member net_gen sticks to edition 2021 for now as discussed in [0]. [0] https://github.com/cloud-hypervisor/cloud-hypervisor/pull/7295#discussion_r2310851041 [1] https://github.com/cloud-hypervisor/cloud-hypervisor/pull/7256#issuecomment-3271888674 Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
29 lines
864 B
TOML
29 lines
864 B
TOML
[package]
|
|
authors = ["The Chromium OS Authors"]
|
|
edition.workspace = true
|
|
name = "arch"
|
|
version = "0.1.0"
|
|
|
|
[features]
|
|
default = []
|
|
fw_cfg = []
|
|
kvm = ["hypervisor/kvm"]
|
|
sev_snp = []
|
|
tdx = []
|
|
|
|
[dependencies]
|
|
anyhow = { workspace = true }
|
|
byteorder = { workspace = true }
|
|
hypervisor = { path = "../hypervisor" }
|
|
libc = { workspace = true }
|
|
linux-loader = { workspace = true, features = ["bzimage", "elf", "pe"] }
|
|
log = { workspace = true }
|
|
serde = { workspace = true, features = ["derive", "rc"] }
|
|
thiserror = { workspace = true }
|
|
uuid = { workspace = true }
|
|
vm-memory = { workspace = true, features = ["backend-bitmap", "backend-mmap"] }
|
|
vmm-sys-util = { workspace = true, features = ["with-serde"] }
|
|
|
|
[target.'cfg(any(target_arch = "aarch64", target_arch = "riscv64"))'.dependencies]
|
|
fdt_parser = { version = "0.1.5", package = "fdt" }
|
|
vm-fdt = { workspace = true }
|