mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
build: drop clap from dev-dependencies
Some crates don't need it at all. Some crates are using it for a simple functionality which can be replaced easily. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
03d8a3ebcf
commit
998fb48ff2
@ -43,9 +43,6 @@ vmm = { path = "vmm" }
|
|||||||
vmm-sys-util = "0.11.0"
|
vmm-sys-util = "0.11.0"
|
||||||
vm-memory = "0.10.0"
|
vm-memory = "0.10.0"
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
clap = { version = "4.0.29", features = ["cargo"] }
|
|
||||||
|
|
||||||
# List of patched crates
|
# List of patched crates
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.6.0-tdx" }
|
kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.6.0-tdx" }
|
||||||
|
5
build.rs
5
build.rs
@ -3,13 +3,10 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
//
|
//
|
||||||
|
|
||||||
#[macro_use(crate_version)]
|
|
||||||
extern crate clap;
|
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut version = "v".to_owned() + crate_version!();
|
let mut version = "v".to_owned() + env!("CARGO_PKG_VERSION");
|
||||||
|
|
||||||
if let Ok(git_out) = Command::new("git").args(["describe", "--dirty"]).output() {
|
if let Ok(git_out) = Command::new("git").args(["describe", "--dirty"]).output() {
|
||||||
if git_out.status.success() {
|
if git_out.status.success() {
|
||||||
|
@ -13,6 +13,3 @@ serde_json = "1.0.89"
|
|||||||
test_infra = { path = "../test_infra" }
|
test_infra = { path = "../test_infra" }
|
||||||
thiserror = "1.0.37"
|
thiserror = "1.0.37"
|
||||||
wait-timeout = "0.2.0"
|
wait-timeout = "0.2.0"
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
clap = { version = "4.0.29", features = ["cargo"] }
|
|
||||||
|
@ -3,13 +3,11 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
//
|
//
|
||||||
|
|
||||||
#[macro_use(crate_version)]
|
|
||||||
extern crate clap;
|
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut git_human_readable = "v".to_owned() + crate_version!();
|
let mut git_human_readable = "v".to_owned() + env!("CARGO_PKG_VERSION");
|
||||||
|
|
||||||
if let Ok(git_out) = Command::new("git").args(["describe", "--dirty"]).output() {
|
if let Ok(git_out) = Command::new("git").args(["describe", "--dirty"]).output() {
|
||||||
if git_out.status.success() {
|
if git_out.status.success() {
|
||||||
if let Ok(git_out_str) = String::from_utf8(git_out.stdout) {
|
if let Ok(git_out_str) = String::from_utf8(git_out.stdout) {
|
||||||
|
@ -20,5 +20,3 @@ virtio-queue = "0.7.0"
|
|||||||
vm-memory = "0.10.0"
|
vm-memory = "0.10.0"
|
||||||
vmm-sys-util = "0.11.0"
|
vmm-sys-util = "0.11.0"
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
clap = { version = "4.0.29", features = ["cargo"] }
|
|
||||||
|
@ -18,5 +18,3 @@ virtio-bindings = "0.1.0"
|
|||||||
vm-memory = "0.10.0"
|
vm-memory = "0.10.0"
|
||||||
vmm-sys-util = "0.11.0"
|
vmm-sys-util = "0.11.0"
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
clap = { version = "4.0.29", features = ["cargo"] }
|
|
||||||
|
Loading…
Reference in New Issue
Block a user