misc: improve developer experience of cargo clippy
A major improvement to the developer experience of clippy in Cloud Hypervisor. 1. Make `cargo clippy` just work with the same lints we use in CI 2. Simplify adding new lints Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
parent
a7fa3a0c86
commit
e4fd066d82
28 changed files with 107 additions and 26 deletions
24
.github/workflows/build.yaml
vendored
24
.github/workflows/build.yaml
vendored
|
|
@ -35,40 +35,40 @@ jobs:
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Build (default features)
|
- name: Build (default features)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor -- -D warnings
|
||||||
|
|
||||||
- name: Build (kvm)
|
- name: Build (kvm)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "kvm" -- -D warnings
|
||||||
|
|
||||||
- name: Build (default features + tdx)
|
- name: Build (default features + tdx)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor --features "tdx" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor --features "tdx" -- -D warnings
|
||||||
|
|
||||||
- name: Build (default features + dbus_api)
|
- name: Build (default features + dbus_api)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor --features "dbus_api" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor --features "dbus_api" -- -D warnings
|
||||||
|
|
||||||
- name: Build (default features + guest_debug)
|
- name: Build (default features + guest_debug)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor --features "guest_debug" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor --features "guest_debug" -- -D warnings
|
||||||
|
|
||||||
- name: Build (default features + pvmemcontrol)
|
- name: Build (default features + pvmemcontrol)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor --features "pvmemcontrol" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor --features "pvmemcontrol" -- -D warnings
|
||||||
|
|
||||||
- name: Build (default features + fw_cfg)
|
- name: Build (default features + fw_cfg)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor --features "fw_cfg" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor --features "fw_cfg" -- -D warnings
|
||||||
|
|
||||||
- name: Build (default features + ivshmem)
|
- name: Build (default features + ivshmem)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor --features "ivshmem" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor --features "ivshmem" -- -D warnings
|
||||||
|
|
||||||
- name: Build (mshv)
|
- name: Build (mshv)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "mshv" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "mshv" -- -D warnings
|
||||||
|
|
||||||
- name: Build (sev_snp)
|
- name: Build (sev_snp)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "sev_snp" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "sev_snp" -- -D warnings
|
||||||
|
|
||||||
- name: Build (igvm)
|
- name: Build (igvm)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "igvm" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "igvm" -- -D warnings
|
||||||
|
|
||||||
- name: Build (mshv + kvm)
|
- name: Build (mshv + kvm)
|
||||||
run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "mshv,kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "mshv,kvm" -- -D warnings
|
||||||
|
|
||||||
- name: Release Build (default features)
|
- name: Release Build (default features)
|
||||||
run: cargo build --locked --all --release --target=${{ matrix.target }}
|
run: cargo build --locked --all --release --target=${{ matrix.target }}
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,10 @@ jobs:
|
||||||
run: /opt/scripts/exec-in-qemu.sh rustup default 1.89.0
|
run: /opt/scripts/exec-in-qemu.sh rustup default 1.89.0
|
||||||
|
|
||||||
- name: Build ${{ matrix.module }} Module (kvm)
|
- name: Build ${{ matrix.module }} Module (kvm)
|
||||||
run: /opt/scripts/exec-in-qemu.sh cargo rustc --locked -p ${{ matrix.module }} --no-default-features --features "kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: /opt/scripts/exec-in-qemu.sh cargo rustc --locked -p ${{ matrix.module }} --no-default-features --features "kvm" -- -D warnings
|
||||||
|
|
||||||
- name: Clippy ${{ matrix.module }} Module (kvm)
|
- name: Clippy ${{ matrix.module }} Module (kvm)
|
||||||
run: /opt/scripts/exec-in-qemu.sh cargo clippy --locked -p ${{ matrix.module }} --no-default-features --features "kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
run: /opt/scripts/exec-in-qemu.sh cargo clippy --locked -p ${{ matrix.module }} --no-default-features --features "kvm" -- -D warnings
|
||||||
|
|
||||||
- name: Test ${{ matrix.module }} Module (kvm)
|
- name: Test ${{ matrix.module }} Module (kvm)
|
||||||
run: /opt/scripts/exec-in-qemu.sh cargo test --locked -p ${{ matrix.module }} --no-default-features --features "kvm"
|
run: /opt/scripts/exec-in-qemu.sh cargo test --locked -p ${{ matrix.module }} --no-default-features --features "kvm"
|
||||||
|
|
|
||||||
24
.github/workflows/quality.yaml
vendored
24
.github/workflows/quality.yaml
vendored
|
|
@ -56,7 +56,7 @@ jobs:
|
||||||
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --no-default-features --tests --examples --features "kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --locked --all --all-targets --no-default-features --tests --examples --features "kvm" -- -D warnings
|
||||||
|
|
||||||
- name: Clippy (mshv)
|
- name: Clippy (mshv)
|
||||||
uses: houseabsolute/actions-rust-cross@v1
|
uses: houseabsolute/actions-rust-cross@v1
|
||||||
|
|
@ -65,7 +65,7 @@ jobs:
|
||||||
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --no-default-features --tests --examples --features "mshv" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --locked --all --all-targets --no-default-features --tests --examples --features "mshv" -- -D warnings
|
||||||
|
|
||||||
- name: Clippy (mshv + kvm)
|
- name: Clippy (mshv + kvm)
|
||||||
uses: houseabsolute/actions-rust-cross@v1
|
uses: houseabsolute/actions-rust-cross@v1
|
||||||
|
|
@ -74,7 +74,7 @@ jobs:
|
||||||
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --no-default-features --tests --examples --features "mshv,kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --locked --all --all-targets --no-default-features --tests --examples --features "mshv,kvm" -- -D warnings
|
||||||
|
|
||||||
- name: Clippy (default features)
|
- name: Clippy (default features)
|
||||||
uses: houseabsolute/actions-rust-cross@v1
|
uses: houseabsolute/actions-rust-cross@v1
|
||||||
|
|
@ -83,7 +83,7 @@ jobs:
|
||||||
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --tests --examples -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --locked --all --all-targets --tests --examples -- -D warnings
|
||||||
|
|
||||||
- name: Clippy (default features + guest_debug)
|
- name: Clippy (default features + guest_debug)
|
||||||
uses: houseabsolute/actions-rust-cross@v1
|
uses: houseabsolute/actions-rust-cross@v1
|
||||||
|
|
@ -92,7 +92,7 @@ jobs:
|
||||||
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --tests --examples --features "guest_debug" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --locked --all --all-targets --tests --examples --features "guest_debug" -- -D warnings
|
||||||
|
|
||||||
- name: Clippy (default features + pvmemcontrol)
|
- name: Clippy (default features + pvmemcontrol)
|
||||||
uses: houseabsolute/actions-rust-cross@v1
|
uses: houseabsolute/actions-rust-cross@v1
|
||||||
|
|
@ -101,7 +101,7 @@ jobs:
|
||||||
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --tests --examples --features "pvmemcontrol" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --locked --all --all-targets --tests --examples --features "pvmemcontrol" -- -D warnings
|
||||||
|
|
||||||
- name: Clippy (default features + tracing)
|
- name: Clippy (default features + tracing)
|
||||||
uses: houseabsolute/actions-rust-cross@v1
|
uses: houseabsolute/actions-rust-cross@v1
|
||||||
|
|
@ -110,13 +110,13 @@ jobs:
|
||||||
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --tests --examples --features "tracing" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --locked --all --all-targets --tests --examples --features "tracing" -- -D warnings
|
||||||
- name: Clippy (default features + fw_cfg)
|
- name: Clippy (default features + fw_cfg)
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }}
|
use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }}
|
||||||
command: clippy
|
command: clippy
|
||||||
args: --target=${{ matrix.target }} --locked --all --all-targets --tests --examples --features "fw_cfg" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --target=${{ matrix.target }} --locked --all --all-targets --tests --examples --features "fw_cfg" -- -D warnings
|
||||||
|
|
||||||
- name: Clippy (default features + ivshmem)
|
- name: Clippy (default features + ivshmem)
|
||||||
uses: houseabsolute/actions-rust-cross@v1
|
uses: houseabsolute/actions-rust-cross@v1
|
||||||
|
|
@ -125,7 +125,7 @@ jobs:
|
||||||
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --tests --examples --features "ivshmem" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --locked --all --all-targets --tests --examples --features "ivshmem" -- -D warnings
|
||||||
|
|
||||||
- name: Clippy (sev_snp)
|
- name: Clippy (sev_snp)
|
||||||
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
|
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
|
||||||
|
|
@ -135,7 +135,7 @@ jobs:
|
||||||
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --no-default-features --tests --examples --features "sev_snp" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --locked --all --all-targets --no-default-features --tests --examples --features "sev_snp" -- -D warnings
|
||||||
|
|
||||||
- name: Clippy (igvm)
|
- name: Clippy (igvm)
|
||||||
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
|
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
|
||||||
|
|
@ -145,7 +145,7 @@ jobs:
|
||||||
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --no-default-features --tests --examples --features "igvm" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --locked --all --all-targets --no-default-features --tests --examples --features "igvm" -- -D warnings
|
||||||
|
|
||||||
- name: Clippy (kvm + tdx)
|
- name: Clippy (kvm + tdx)
|
||||||
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
|
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
|
||||||
|
|
@ -155,7 +155,7 @@ jobs:
|
||||||
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --no-default-features --tests --examples --features "tdx,kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states
|
args: --locked --all --all-targets --no-default-features --tests --examples --features "tdx,kvm" -- -D warnings
|
||||||
|
|
||||||
- name: Check build did not modify any files
|
- name: Check build did not modify any files
|
||||||
run: test -z "$(git status --porcelain)"
|
run: test -z "$(git status --porcelain)"
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,9 @@ sev_snp = ["igvm", "mshv", "vmm/sev_snp"]
|
||||||
tdx = ["vmm/tdx"]
|
tdx = ["vmm/tdx"]
|
||||||
tracing = ["tracer/tracing", "vmm/tracing"]
|
tracing = ["tracer/tracing", "vmm/tracing"]
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
"api_client",
|
"api_client",
|
||||||
|
|
@ -153,3 +156,9 @@ thiserror = "2.0.17"
|
||||||
uuid = { version = "1.18.1" }
|
uuid = { version = "1.18.1" }
|
||||||
wait-timeout = "0.2.1"
|
wait-timeout = "0.2.1"
|
||||||
zerocopy = { version = "0.8.27", default-features = false }
|
zerocopy = { version = "0.8.27", default-features = false }
|
||||||
|
|
||||||
|
[workspace.lints.clippy]
|
||||||
|
# Any clippy lint in alphabetical order, including lint groups:
|
||||||
|
# https://rust-lang.github.io/rust-clippy/master/index.html
|
||||||
|
assertions_on_result_states = "deny"
|
||||||
|
undocumented_unsafe_blocks = "deny"
|
||||||
|
|
|
||||||
|
|
@ -7,3 +7,6 @@ version = "0.1.0"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
vmm-sys-util = { workspace = true }
|
vmm-sys-util = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -27,3 +27,6 @@ vmm-sys-util = { workspace = true, features = ["with-serde"] }
|
||||||
[target.'cfg(any(target_arch = "aarch64", target_arch = "riscv64"))'.dependencies]
|
[target.'cfg(any(target_arch = "aarch64", target_arch = "riscv64"))'.dependencies]
|
||||||
fdt_parser = { version = "0.1.5", package = "fdt" }
|
fdt_parser = { version = "0.1.5", package = "fdt" }
|
||||||
vm-fdt = { workspace = true }
|
vm-fdt = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -28,3 +28,6 @@ vm-memory = { workspace = true, features = [
|
||||||
] }
|
] }
|
||||||
vm-virtio = { path = "../vm-virtio" }
|
vm-virtio = { path = "../vm-virtio" }
|
||||||
vmm-sys-util = { workspace = true }
|
vmm-sys-util = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -48,3 +48,6 @@ fw_cfg = ["arch/fw_cfg", "bitfield-struct", "linux-loader", "zerocopy"]
|
||||||
ivshmem = []
|
ivshmem = []
|
||||||
kvm = ["arch/kvm"]
|
kvm = ["arch/kvm"]
|
||||||
pvmemcontrol = []
|
pvmemcontrol = []
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -9,3 +9,6 @@ flume = { workspace = true }
|
||||||
libc = { workspace = true }
|
libc = { workspace = true }
|
||||||
serde = { workspace = true, features = ["derive", "rc"] }
|
serde = { workspace = true, features = ["derive", "rc"] }
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -63,3 +63,6 @@ version = "1.21.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
env_logger = { workspace = true }
|
env_logger = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -7,3 +7,6 @@ version = "0.1.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
vmm-sys-util = { workspace = true }
|
vmm-sys-util = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -27,3 +27,6 @@ vmm-sys-util = { workspace = true }
|
||||||
pnet = "0.35.0"
|
pnet = "0.35.0"
|
||||||
pnet_datalink = "0.35.0"
|
pnet_datalink = "0.35.0"
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -6,3 +6,6 @@ version = "0.1.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -29,3 +29,6 @@ vm-memory = { workspace = true, features = [
|
||||||
] }
|
] }
|
||||||
vm-migration = { path = "../vm-migration" }
|
vm-migration = { path = "../vm-migration" }
|
||||||
vmm-sys-util = { workspace = true }
|
vmm-sys-util = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -12,3 +12,6 @@ serde = { workspace = true, features = ["derive", "rc"] }
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
test_infra = { path = "../test_infra" }
|
test_infra = { path = "../test_infra" }
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -9,3 +9,6 @@ libc = { workspace = true }
|
||||||
log = { workspace = true }
|
log = { workspace = true }
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
vmm-sys-util = { workspace = true }
|
vmm-sys-util = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,6 @@ authors = ["The Cloud Hypervisor Authors"]
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
name = "serial_buffer"
|
name = "serial_buffer"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -13,3 +13,6 @@ ssh2 = { version = "0.9.5", features = ["vendored-openssl"] }
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
vmm-sys-util = { workspace = true }
|
vmm-sys-util = { workspace = true }
|
||||||
wait-timeout = { workspace = true }
|
wait-timeout = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -12,3 +12,6 @@ log = { workspace = true }
|
||||||
net_gen = { path = "../net_gen" }
|
net_gen = { path = "../net_gen" }
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
vmm-sys-util = { workspace = true }
|
vmm-sys-util = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -12,3 +12,6 @@ serde_json = { workspace = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
tracing = []
|
tracing = []
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -19,3 +19,6 @@ virtio-bindings = { workspace = true }
|
||||||
virtio-queue = { workspace = true }
|
virtio-queue = { workspace = true }
|
||||||
vm-memory = { workspace = true }
|
vm-memory = { workspace = true }
|
||||||
vmm-sys-util = { workspace = true }
|
vmm-sys-util = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -19,3 +19,6 @@ vhost-user-backend = { workspace = true }
|
||||||
virtio-bindings = { workspace = true }
|
virtio-bindings = { workspace = true }
|
||||||
vm-memory = { workspace = true }
|
vm-memory = { workspace = true }
|
||||||
vmm-sys-util = { workspace = true }
|
vmm-sys-util = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -47,3 +47,6 @@ vm-memory = { workspace = true, features = [
|
||||||
vm-migration = { path = "../vm-migration" }
|
vm-migration = { path = "../vm-migration" }
|
||||||
vm-virtio = { path = "../vm-virtio" }
|
vm-virtio = { path = "../vm-virtio" }
|
||||||
vmm-sys-util = { workspace = true }
|
vmm-sys-util = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,6 @@ vm-memory = { workspace = true }
|
||||||
|
|
||||||
[target.'cfg(any(target_arch = "aarch64", target_arch = "riscv64"))'.dependencies]
|
[target.'cfg(any(target_arch = "aarch64", target_arch = "riscv64"))'.dependencies]
|
||||||
arch = { path = "../arch" }
|
arch = { path = "../arch" }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -16,3 +16,6 @@ thiserror = { workspace = true }
|
||||||
vfio-ioctls = { workspace = true, default-features = false }
|
vfio-ioctls = { workspace = true, default-features = false }
|
||||||
vm-memory = { workspace = true, features = ["backend-mmap"] }
|
vm-memory = { workspace = true, features = ["backend-mmap"] }
|
||||||
vmm-sys-util = { workspace = true }
|
vmm-sys-util = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -11,3 +11,6 @@ serde = { workspace = true, features = ["derive", "rc"] }
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
vm-memory = { workspace = true, features = ["backend-atomic", "backend-mmap"] }
|
vm-memory = { workspace = true, features = ["backend-atomic", "backend-mmap"] }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,6 @@ vm-memory = { workspace = true, features = [
|
||||||
"backend-bitmap",
|
"backend-bitmap",
|
||||||
"backend-mmap",
|
"backend-mmap",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
|
|
@ -93,3 +93,6 @@ vm-virtio = { path = "../vm-virtio" }
|
||||||
vmm-sys-util = { workspace = true, features = ["with-serde"] }
|
vmm-sys-util = { workspace = true, features = ["with-serde"] }
|
||||||
zbus = { version = "5.11.0", optional = true }
|
zbus = { version = "5.11.0", optional = true }
|
||||||
zerocopy = { workspace = true, features = ["alloc", "derive"] }
|
zerocopy = { workspace = true, features = ["alloc", "derive"] }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue