From ed58c443049cc99d7e533fb1b80d1bc66db55eef Mon Sep 17 00:00:00 2001 From: Maxime Date: Thu, 23 Mar 2023 23:47:14 +0100 Subject: [PATCH] fix : dependency lumper Signed-off-by: Maxime --- Cargo.lock | 45 +++++++++++++++++++++++++++++++++++++++++++ src/vmm/Cargo.toml | 3 +++ src/vmm/src/kernel.rs | 2 -- 3 files changed, 48 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 48f012f..9c958fc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -122,6 +122,12 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "itoa" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" + [[package]] name = "kvm-bindings" version = "0.6.0" @@ -248,6 +254,43 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "ryu" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" + +[[package]] +name = "serde" +version = "1.0.156" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "314b5b092c0ade17c00142951e50ced110ec27cea304b1037c6969246c2469a4" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.156" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7e29c4601e36bcec74a223228dce795f4cd3616341a4af93520ca1a837c087d" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d721eca97ac802aa7777b701877c8004d950fc142651367300d21c1cc0194744" +dependencies = [ + "itoa", + "ryu", + "serde", +] + [[package]] name = "strsim" version = "0.10.0" @@ -352,6 +395,8 @@ dependencies = [ "kvm-ioctls", "libc", "linux-loader", + "serde", + "serde_json", "virtio-bindings 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "virtio-device", "virtio-queue", diff --git a/src/vmm/Cargo.toml b/src/vmm/Cargo.toml index 7c23c78..403ddfc 100644 --- a/src/vmm/Cargo.toml +++ b/src/vmm/Cargo.toml @@ -21,3 +21,6 @@ virtio-device = { git = "https://github.com/rust-vmm/vm-virtio" } virtio-queue = { git = "https://github.com/rust-vmm/vm-virtio" } vm-superio = "0.7.0" + +serde_json = "1.0.94" +serde = { version = "1.0.126", features = ["derive"] } \ No newline at end of file diff --git a/src/vmm/src/kernel.rs b/src/vmm/src/kernel.rs index 4a5f01f..b562ea3 100644 --- a/src/vmm/src/kernel.rs +++ b/src/vmm/src/kernel.rs @@ -1,5 +1,3 @@ -// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause - #![cfg(target_arch = "x86_64")] use std::fs::File;