diff options
author | Narfinger <Narfinger@users.noreply.github.com> | 2025-05-23 14:58:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-23 12:58:00 +0000 |
commit | 8788248fecaeebe91aa66a490cd04431862170ff (patch) | |
tree | 9d16039f9bd9976bf242060ae33cf8ada024428a | |
parent | 048471275d4e1305f07b789b798f33cefe223e4c (diff) | |
download | servo-8788248fecaeebe91aa66a490cd04431862170ff.tar.gz servo-8788248fecaeebe91aa66a490cd04431862170ff.zip |
Removing unused dependencies in crates. (#37096)
Removed unused dependencies in various crates using cargo-machete, grep
and cargo-udeps.
Testing: The CI tests if any dependencies were used that are removed.
Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
-rw-r--r-- | Cargo.lock | 36 | ||||
-rw-r--r-- | components/canvas/Cargo.toml | 1 | ||||
-rw-r--r-- | components/compositing/Cargo.toml | 2 | ||||
-rw-r--r-- | components/layout/Cargo.toml | 1 | ||||
-rw-r--r-- | components/metrics/Cargo.toml | 1 | ||||
-rw-r--r-- | components/net/Cargo.toml | 1 | ||||
-rw-r--r-- | components/profile/Cargo.toml | 1 | ||||
-rw-r--r-- | components/script/Cargo.toml | 1 | ||||
-rw-r--r-- | components/servo/Cargo.toml | 1 | ||||
-rw-r--r-- | components/shared/constellation/Cargo.toml | 1 | ||||
-rw-r--r-- | components/shared/embedder/Cargo.toml | 1 | ||||
-rw-r--r-- | components/shared/profile/Cargo.toml | 1 | ||||
-rw-r--r-- | components/shared/script/Cargo.toml | 1 | ||||
-rw-r--r-- | components/shared/script_layout/Cargo.toml | 3 | ||||
-rw-r--r-- | components/webdriver_server/Cargo.toml | 2 | ||||
-rw-r--r-- | components/webgpu/Cargo.toml | 1 | ||||
-rw-r--r-- | components/webxr/Cargo.toml | 1 | ||||
-rw-r--r-- | ports/servoshell/Cargo.toml | 6 |
18 files changed, 0 insertions, 62 deletions
diff --git a/Cargo.lock b/Cargo.lock index 8c74035ceb5..bf2c9c74e51 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -795,7 +795,6 @@ dependencies = [ "log", "lyon_geom", "net_traits", - "num-traits", "pixels", "range", "raqote", @@ -1099,11 +1098,9 @@ dependencies = [ "net", "pixels", "profile_traits", - "script_traits", "servo_allocator", "servo_config", "servo_geometry", - "smallvec", "stylo_traits", "surfman", "tracing", @@ -1198,7 +1195,6 @@ name = "constellation_traits" version = "0.0.1" dependencies = [ "base", - "bitflags 2.9.1", "canvas_traits", "devtools_traits", "embedder_traits", @@ -1913,7 +1909,6 @@ name = "embedder_traits" version = "0.0.1" dependencies = [ "base", - "cfg-if", "cookie 0.18.1", "crossbeam-channel", "euclid", @@ -4160,7 +4155,6 @@ dependencies = [ "atomic_refcell", "base", "bitflags 2.9.1", - "canvas_traits", "compositing_traits", "constellation_traits", "data-url", @@ -4294,7 +4288,6 @@ dependencies = [ "bluetooth_traits", "canvas", "canvas_traits", - "cfg-if", "compositing", "compositing_traits", "constellation", @@ -4572,7 +4565,6 @@ name = "metrics" version = "0.0.1" dependencies = [ "base", - "constellation_traits", "ipc-channel", "log", "malloc_size_of_derive", @@ -4843,7 +4835,6 @@ dependencies = [ "rustls-pki-types", "serde", "serde_json", - "servo_allocator", "servo_arc", "servo_config", "servo_malloc_size_of", @@ -5830,7 +5821,6 @@ dependencies = [ "ipc-channel", "libc", "log", - "parking_lot", "profile_traits", "regex", "serde", @@ -5866,7 +5856,6 @@ dependencies = [ "servo_config", "servo_malloc_size_of", "signpost", - "strum_macros", "time", "tracing", ] @@ -6339,7 +6328,6 @@ dependencies = [ "nom", "num-traits", "num_cpus", - "parking_lot", "percent-encoding", "phf", "pixels", @@ -6434,7 +6422,6 @@ dependencies = [ "app_units", "atomic_refcell", "base", - "canvas_traits", "compositing_traits", "constellation_traits", "embedder_traits", @@ -6447,7 +6434,6 @@ dependencies = [ "ipc-channel", "libc", "malloc_size_of_derive", - "metrics", "net_traits", "pixels", "profile_traits", @@ -6459,7 +6445,6 @@ dependencies = [ "servo_malloc_size_of", "servo_url", "stylo", - "stylo_traits", "webrender_api", ] @@ -6487,7 +6472,6 @@ dependencies = [ "devtools_traits", "embedder_traits", "euclid", - "http 1.3.1", "ipc-channel", "keyboard-types", "malloc_size_of_derive", @@ -6934,19 +6918,15 @@ dependencies = [ "euclid", "getopts", "gilrs", - "gleam", "glow", "headers 0.4.0", "hilog", "hitrace", - "http 1.3.1", - "icu_locid", "image", "ipc-channel", "jni", "keyboard-types", "libc", - "libloading", "libservo", "log", "mime_guess", @@ -6963,9 +6943,7 @@ dependencies = [ "raw-window-handle", "rustls", "serde_json", - "servo-tracing", "servo_allocator", - "shellwords", "sig", "surfman", "tokio", @@ -7011,16 +6989,6 @@ dependencies = [ ] [[package]] -name = "shellwords" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89e515aa4699a88148ed5ef96413ceef0048ce95b43fbc955a33bde0a70fcae6" -dependencies = [ - "lazy_static", - "regex", -] - -[[package]] name = "shlex" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -8582,9 +8550,7 @@ dependencies = [ "ipc-channel", "keyboard-types", "log", - "net_traits", "pixels", - "script_traits", "serde", "serde_json", "servo_config", @@ -8631,7 +8597,6 @@ dependencies = [ "log", "serde", "servo_config", - "servo_malloc_size_of", "snapshot", "webgpu_traits", "webrender", @@ -8734,7 +8699,6 @@ name = "webxr" version = "0.0.1" dependencies = [ "crossbeam-channel", - "embedder_traits", "euclid", "glow", "log", diff --git a/components/canvas/Cargo.toml b/components/canvas/Cargo.toml index 6084fc6e434..7aadc8a9bb5 100644 --- a/components/canvas/Cargo.toml +++ b/components/canvas/Cargo.toml @@ -24,7 +24,6 @@ ipc-channel = { workspace = true } log = { workspace = true } lyon_geom = "1.0.4" net_traits = { workspace = true } -num-traits = { workspace = true } pixels = { path = "../pixels" } range = { path = "../range" } raqote = "0.8.5" diff --git a/components/compositing/Cargo.toml b/components/compositing/Cargo.toml index 8e788e58734..9b4ff54d29e 100644 --- a/components/compositing/Cargo.toml +++ b/components/compositing/Cargo.toml @@ -34,11 +34,9 @@ log = { workspace = true } net = { path = "../net" } pixels = { path = "../pixels" } profile_traits = { workspace = true } -script_traits = { workspace = true } servo_allocator = { path = "../allocator" } servo_config = { path = "../config" } servo_geometry = { path = "../geometry" } -smallvec = { workspace = true } stylo_traits = { workspace = true } tracing = { workspace = true, optional = true } webrender = { workspace = true } diff --git a/components/layout/Cargo.toml b/components/layout/Cargo.toml index 0505581fba7..0e4cd0b79fd 100644 --- a/components/layout/Cargo.toml +++ b/components/layout/Cargo.toml @@ -21,7 +21,6 @@ app_units = { workspace = true } atomic_refcell = { workspace = true } base = { workspace = true } bitflags = { workspace = true } -canvas_traits = { workspace = true } compositing_traits = { workspace = true } constellation_traits = { workspace = true } data-url = { workspace = true } diff --git a/components/metrics/Cargo.toml b/components/metrics/Cargo.toml index 3888b41bb29..a62ff8c98dc 100644 --- a/components/metrics/Cargo.toml +++ b/components/metrics/Cargo.toml @@ -13,7 +13,6 @@ path = "lib.rs" [dependencies] base = { workspace = true } -constellation_traits = { workspace = true } ipc-channel = { workspace = true } log = { workspace = true } malloc_size_of = { workspace = true } diff --git a/components/net/Cargo.toml b/components/net/Cargo.toml index 1945165b8c1..33d5826978b 100644 --- a/components/net/Cargo.toml +++ b/components/net/Cargo.toml @@ -58,7 +58,6 @@ rustls-pemfile = { workspace = true } rustls-pki-types = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } -servo_allocator = { path = "../allocator" } servo_arc = { workspace = true } servo_config = { path = "../config" } servo_url = { path = "../url" } diff --git a/components/profile/Cargo.toml b/components/profile/Cargo.toml index 8a8d0775711..73c7924d863 100644 --- a/components/profile/Cargo.toml +++ b/components/profile/Cargo.toml @@ -15,7 +15,6 @@ path = "lib.rs" base = { workspace = true } ipc-channel = { workspace = true } log = { workspace = true } -parking_lot = { workspace = true } profile_traits = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml index 6d588a3984e..09dab3471df 100644 --- a/components/script/Cargo.toml +++ b/components/script/Cargo.toml @@ -94,7 +94,6 @@ net_traits = { workspace = true } nom = "7.1.3" num-traits = { workspace = true } num_cpus = { workspace = true } -parking_lot = { workspace = true } percent-encoding = { workspace = true } phf = "0.11" pixels = { path = "../pixels" } diff --git a/components/servo/Cargo.toml b/components/servo/Cargo.toml index 687cdd6a5a2..5988dbdc4b9 100644 --- a/components/servo/Cargo.toml +++ b/components/servo/Cargo.toml @@ -72,7 +72,6 @@ bluetooth_traits = { workspace = true, optional = true } canvas = { path = "../canvas" } webgl = { path = "../webgl", default-features = false } canvas_traits = { workspace = true } -cfg-if = { workspace = true } compositing = { path = "../compositing" } compositing_traits = { workspace = true } constellation = { path = "../constellation" } diff --git a/components/shared/constellation/Cargo.toml b/components/shared/constellation/Cargo.toml index 53a4307df60..3b093b3f684 100644 --- a/components/shared/constellation/Cargo.toml +++ b/components/shared/constellation/Cargo.toml @@ -17,7 +17,6 @@ webgpu = ["wgpu-core"] [dependencies] base = { workspace = true } -bitflags = { workspace = true } canvas_traits = { workspace = true } devtools_traits = { workspace = true } embedder_traits = { workspace = true } diff --git a/components/shared/embedder/Cargo.toml b/components/shared/embedder/Cargo.toml index d938169d37a..4904adf6447 100644 --- a/components/shared/embedder/Cargo.toml +++ b/components/shared/embedder/Cargo.toml @@ -18,7 +18,6 @@ baked-default-resources = [] [dependencies] base = { workspace = true } -cfg-if = { workspace = true } cookie = { workspace = true } crossbeam-channel = { workspace = true } euclid = { workspace = true } diff --git a/components/shared/profile/Cargo.toml b/components/shared/profile/Cargo.toml index 8086bf17ba2..68a7df28c00 100644 --- a/components/shared/profile/Cargo.toml +++ b/components/shared/profile/Cargo.toml @@ -25,6 +25,5 @@ serde = { workspace = true } servo_allocator = { path = "../../allocator" } servo_config = { path = "../../config" } signpost = { git = "https://github.com/pcwalton/signpost.git" } -strum_macros = { workspace = true } time = { workspace = true } tracing = { workspace = true, optional = true } diff --git a/components/shared/script/Cargo.toml b/components/shared/script/Cargo.toml index 0d3690188fe..69438867cc0 100644 --- a/components/shared/script/Cargo.toml +++ b/components/shared/script/Cargo.toml @@ -26,7 +26,6 @@ crossbeam-channel = { workspace = true } devtools_traits = { workspace = true } embedder_traits = { workspace = true } euclid = { workspace = true } -http = { workspace = true } ipc-channel = { workspace = true } keyboard-types = { workspace = true } malloc_size_of = { workspace = true } diff --git a/components/shared/script_layout/Cargo.toml b/components/shared/script_layout/Cargo.toml index 06690192f73..167606f7247 100644 --- a/components/shared/script_layout/Cargo.toml +++ b/components/shared/script_layout/Cargo.toml @@ -15,7 +15,6 @@ path = "lib.rs" base = { workspace = true } app_units = { workspace = true } atomic_refcell = { workspace = true } -canvas_traits = { workspace = true } compositing_traits = { workspace = true } constellation_traits = { workspace = true } embedder_traits = { workspace = true } @@ -29,7 +28,6 @@ ipc-channel = { workspace = true } libc = { workspace = true } malloc_size_of = { workspace = true } malloc_size_of_derive = { workspace = true } -metrics = { path = "../../metrics" } net_traits = { workspace = true } pixels = { path = "../../pixels" } profile_traits = { workspace = true } @@ -40,5 +38,4 @@ serde = { workspace = true } servo_arc = { workspace = true } servo_url = { path = "../../url" } stylo = { workspace = true } -stylo_traits = { workspace = true } webrender_api = { workspace = true } diff --git a/components/webdriver_server/Cargo.toml b/components/webdriver_server/Cargo.toml index 70de7f0fc50..47c77e0e9a0 100644 --- a/components/webdriver_server/Cargo.toml +++ b/components/webdriver_server/Cargo.toml @@ -24,9 +24,7 @@ image = { workspace = true } ipc-channel = { workspace = true } keyboard-types = { workspace = true } log = { workspace = true } -net_traits = { workspace = true } pixels = { path = "../pixels" } -script_traits = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } servo_config = { path = "../config" } diff --git a/components/webgpu/Cargo.toml b/components/webgpu/Cargo.toml index 39ca562affe..39b2e952679 100644 --- a/components/webgpu/Cargo.toml +++ b/components/webgpu/Cargo.toml @@ -18,7 +18,6 @@ compositing_traits = { workspace = true } euclid = { workspace = true } ipc-channel = { workspace = true } log = { workspace = true } -malloc_size_of = { workspace = true } serde = { workspace = true, features = ["serde_derive"] } servo_config = { path = "../config" } webgpu_traits = { workspace = true } diff --git a/components/webxr/Cargo.toml b/components/webxr/Cargo.toml index 49315ac41db..809e8483bd4 100644 --- a/components/webxr/Cargo.toml +++ b/components/webxr/Cargo.toml @@ -26,7 +26,6 @@ openxr-api = ["angle", "openxr", "winapi", "wio", "surfman/sm-angle-default"] [dependencies] crossbeam-channel = { workspace = true } -embedder_traits = { workspace = true } euclid = { workspace = true } glow = { workspace = true } log = { workspace = true } diff --git a/ports/servoshell/Cargo.toml b/ports/servoshell/Cargo.toml index eee077f33ec..d63b9db0bbe 100644 --- a/ports/servoshell/Cargo.toml +++ b/ports/servoshell/Cargo.toml @@ -59,7 +59,6 @@ dpi = { workspace = true } euclid = { workspace = true } getopts = { workspace = true } hitrace = { workspace = true, optional = true } -icu_locid = "1.5.0" image = { workspace = true } keyboard-types = { workspace = true } libc = { workspace = true } @@ -68,7 +67,6 @@ log = { workspace = true } mime_guess = { workspace = true } raw-window-handle = { workspace = true } rustls = { workspace = true, features = ["aws-lc-rs"] } -servo-tracing = { workspace = true } tokio = { workspace = true } tracing = { workspace = true, optional = true } tracing-perfetto = { workspace = true, optional = true } @@ -79,7 +77,6 @@ url = { workspace = true } android_logger = "0.15" ipc-channel = { workspace = true } jni = "0.21.1" -libloading = "0.8" [target.'cfg(not(target_os = "android"))'.dependencies] backtrace = { workspace = true } @@ -110,16 +107,13 @@ egui-file-dialog = "0.9.0" egui-winit = { version = "0.31.1", default-features = false, features = ["clipboard", "wayland"] } egui_glow = { version = "0.31.1", features = ["winit"] } gilrs = "0.11.0" -gleam = { workspace = true } glow = "0.16.0" headers = { workspace = true } -http = { workspace = true } net = { path = "../../components/net" } net_traits = { workspace = true } serde_json = { workspace = true } # For optional feature servo_allocator/use-system-allocator servo_allocator = { path = "../../components/allocator" } -shellwords = "1.0.0" surfman = { workspace = true, features = ["sm-raw-window-handle-06", "sm-x11"] } winit = "0.30.11" |