From 85f53645947cbadf046d6e086059d89d6ec5ba2a Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Mon, 7 Feb 2022 10:01:44 +0100 Subject: [PATCH] build: Fix cargo patch warning The patch mechanism in Cargo.toml doesn't support features to be specified, and was leading to the following warning: warning: patch for `kvm-bindings` uses the features mechanism. default-features and features will not take effect because the patch dependency does not support this mechanism Removing the "features" parameter from the patch fixes this warning without breaking the build. Signed-off-by: Sebastien Boeuf --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index afefcc881..52e49a620 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ clap = { version = "3.0.14", features = ["wrap_help"] } # List of patched crates [patch.crates-io] -kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.5.0", features = ["with-serde", "fam-wrappers"] } +kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.5.0" } kvm-ioctls = { git = "https://github.com/rust-vmm/kvm-ioctls", branch = "main" } versionize_derive = { git = "https://github.com/cloud-hypervisor/versionize_derive", branch = "ch" } virtio-queue = { git = "https://github.com/rust-vmm/vm-virtio", branch = "main" }