From 5bc311184e4062f3fdb1512f994968a311fa3692 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 12 Mar 2021 13:30:24 +0000 Subject: [PATCH] build: Remove url crate dependency This removes multiple transitive dependencies and speeds up our build. Signed-off-by: Rob Bradford --- Cargo.lock | 79 -------------------------------------------------- vmm/Cargo.toml | 1 - vmm/src/lib.rs | 1 - 3 files changed, 81 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ee93e2d59..e5f5ab008 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -369,16 +369,6 @@ dependencies = [ "synstructure", ] -[[package]] -name = "form_urlencoded" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" -dependencies = [ - "matches", - "percent-encoding", -] - [[package]] name = "getrandom" version = "0.1.16" @@ -450,17 +440,6 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "idna" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89829a5d69c23d348314a7ac337fe39173b61149a9864deabd260983aed48c21" -dependencies = [ - "matches", - "unicode-bidi", - "unicode-normalization", -] - [[package]] name = "io-uring" version = "0.5.0" @@ -591,12 +570,6 @@ dependencies = [ "cfg-if 1.0.0", ] -[[package]] -name = "matches" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" - [[package]] name = "memchr" version = "2.3.4" @@ -736,12 +709,6 @@ dependencies = [ "vmm-sys-util", ] -[[package]] -name = "percent-encoding" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" - [[package]] name = "pkg-config" version = "0.3.19" @@ -1186,39 +1153,6 @@ dependencies = [ "syn", ] -[[package]] -name = "tinyvec" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317cca572a0e89c3ce0ca1f1bdc9369547fe318a683418e42ac8f59d14701023" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" - -[[package]] -name = "unicode-bidi" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" -dependencies = [ - "matches", -] - -[[package]] -name = "unicode-normalization" -version = "0.1.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07fbfce1c8a97d547e8b5334978438d9d6ec8c20e38f56d4a4374d181493eaef" -dependencies = [ - "tinyvec", -] - [[package]] name = "unicode-width" version = "0.1.8" @@ -1237,18 +1171,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" -[[package]] -name = "url" -version = "2.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ccd964113622c8e9322cfac19eb1004a07e636c545f325da085d5cdde6f1f8b" -dependencies = [ - "form_urlencoded", - "idna", - "matches", - "percent-encoding", -] - [[package]] name = "vcpkg" version = "0.2.11" @@ -1468,7 +1390,6 @@ dependencies = [ "serde_json", "signal-hook", "thiserror", - "url", "vfio-ioctls", "virtio-devices", "vm-allocator", diff --git a/vmm/Cargo.toml b/vmm/Cargo.toml index 864ab753e..2c42099e1 100644 --- a/vmm/Cargo.toml +++ b/vmm/Cargo.toml @@ -41,7 +41,6 @@ serde_derive = ">=1.0.27" serde_json = ">=1.0.9" signal-hook = "0.3.7" thiserror = "1.0" -url = "2.2.1" vfio-ioctls = { git = "https://github.com/rust-vmm/vfio-ioctls", branch = "master" } virtio-devices = { path = "../virtio-devices" } vm-allocator = { path = "../vm-allocator" } diff --git a/vmm/src/lib.rs b/vmm/src/lib.rs index 75d9fa2b1..2836b779d 100644 --- a/vmm/src/lib.rs +++ b/vmm/src/lib.rs @@ -17,7 +17,6 @@ extern crate serde; #[macro_use] extern crate serde_derive; extern crate serde_json; -extern crate url; extern crate vmm_sys_util; #[cfg(test)] #[macro_use]