From 480666e4e3ef6258308264b345af7488642eafac Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Sat, 6 Mar 2021 12:07:09 +0100 Subject: [PATCH] removed unused dependencies using cargo-udeps #1036 --- Cargo.lock | 84 +----------------------------------- cli/Cargo.toml | 1 - compiler/builtins/Cargo.toml | 2 - compiler/fmt/Cargo.toml | 2 - compiler/gen/Cargo.toml | 2 - compiler/mono/Cargo.toml | 2 - compiler/solve/Cargo.toml | 3 -- compiler/test_gen/Cargo.toml | 1 - compiler/types/Cargo.toml | 2 - editor/Cargo.toml | 28 ------------ 10 files changed, 1 insertion(+), 126 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fdba3e9f42..ef8b47a77e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1690,7 +1690,7 @@ dependencies = [ "kernel32-sys", "libc", "log", - "miow 0.2.2", + "miow", "net2", "slab", "winapi 0.2.8", @@ -1708,29 +1708,6 @@ dependencies = [ "slab", ] -[[package]] -name = "mio-named-pipes" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656" -dependencies = [ - "log", - "mio", - "miow 0.3.6", - "winapi 0.3.9", -] - -[[package]] -name = "mio-uds" -version = "0.6.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0" -dependencies = [ - "iovec", - "libc", - "mio", -] - [[package]] name = "miow" version = "0.2.2" @@ -1743,16 +1720,6 @@ dependencies = [ "ws2_32-sys", ] -[[package]] -name = "miow" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a33c1b55807fbed163481b5ba66db4b2fa6cde694a5027be10fb724206c5897" -dependencies = [ - "socket2", - "winapi 0.3.9", -] - [[package]] name = "naga" version = "0.2.0" @@ -2738,7 +2705,6 @@ dependencies = [ "pretty_assertions", "quickcheck", "quickcheck_macros", - "roc_can", "roc_collections", "roc_module", "roc_region", @@ -2811,7 +2777,6 @@ dependencies = [ "strip-ansi-escapes", "target-lexicon", "tempfile", - "tokio", ] [[package]] @@ -2859,9 +2824,7 @@ dependencies = [ "im", "im-rc", "indoc", - "inkwell", "inlinable_string", - "itertools 0.9.0", "libc", "log", "maplit", @@ -2873,25 +2836,16 @@ dependencies = [ "quickcheck", "quickcheck_macros", "rand 0.8.3", - "roc_builtins", "roc_can", "roc_collections", - "roc_constrain", "roc_fmt", - "roc_gen", - "roc_load", "roc_module", - "roc_mono", "roc_parse", "roc_problem", "roc_region", - "roc_reporting", - "roc_solve", "roc_types", - "roc_unify", "ropey", "snafu", - "target-lexicon", "ven_graph", "wgpu", "wgpu_glyph", @@ -2915,9 +2869,7 @@ dependencies = [ "roc_collections", "roc_module", "roc_parse", - "roc_problem", "roc_region", - "roc_types", ] [[package]] @@ -2932,7 +2884,6 @@ dependencies = [ "inkwell", "inlinable_string", "libc", - "libloading", "maplit", "pretty_assertions", "quickcheck", @@ -2941,7 +2892,6 @@ dependencies = [ "roc_builtins", "roc_can", "roc_collections", - "roc_constrain", "roc_load", "roc_module", "roc_mono", @@ -3054,7 +3004,6 @@ dependencies = [ "roc_builtins", "roc_can", "roc_collections", - "roc_constrain", "roc_load", "roc_module", "roc_parse", @@ -3144,7 +3093,6 @@ dependencies = [ "roc_builtins", "roc_can", "roc_collections", - "roc_constrain", "roc_load", "roc_module", "roc_parse", @@ -3175,8 +3123,6 @@ dependencies = [ "quickcheck_macros", "roc_collections", "roc_module", - "roc_parse", - "roc_problem", "roc_region", "ven_ena", ] @@ -3405,15 +3351,6 @@ dependencies = [ "opaque-debug", ] -[[package]] -name = "signal-hook-registry" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16f1d0fef1604ba8f7a073c7e701f213e056707210e9020af4528e0101ce11a6" -dependencies = [ - "libc", -] - [[package]] name = "siphasher" version = "0.3.3" @@ -3507,17 +3444,6 @@ dependencies = [ "syn 1.0.60", ] -[[package]] -name = "socket2" -version = "0.3.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "winapi 0.3.9", -] - [[package]] name = "spirv_cross" version = "0.22.2" @@ -3666,7 +3592,6 @@ dependencies = [ "libc", "libloading", "maplit", - "pretty_assertions", "quickcheck", "quickcheck_macros", "roc_build", @@ -3763,17 +3688,10 @@ checksum = "6703a273949a90131b290be1fe7b039d0fc884aa1935860dfcbe056f28cd8092" dependencies = [ "bytes", "fnv", - "lazy_static", - "libc", "memchr", - "mio", - "mio-named-pipes", - "mio-uds", "num_cpus", "pin-project-lite 0.1.11", - "signal-hook-registry", "slab", - "winapi 0.3.9", ] [[package]] diff --git a/cli/Cargo.toml b/cli/Cargo.toml index b420d22a37..0a7b8978f6 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -58,7 +58,6 @@ im = "14" # im and im-rc should always have the same version! im-rc = "14" # im and im-rc should always have the same version! bumpalo = { version = "3.2", features = ["collections"] } inlinable_string = "0.1" -tokio = { version = "0.2", features = ["blocking", "fs", "sync", "rt-threaded", "process", "io-driver"] } libc = "0.2" libloading = "0.6" diff --git a/compiler/builtins/Cargo.toml b/compiler/builtins/Cargo.toml index 2eb6c64586..e51917f71d 100644 --- a/compiler/builtins/Cargo.toml +++ b/compiler/builtins/Cargo.toml @@ -10,8 +10,6 @@ roc_collections = { path = "../collections" } roc_region = { path = "../region" } roc_module = { path = "../module" } roc_types = { path = "../types" } -roc_can = { path = "../can" } - [dev-dependencies] pretty_assertions = "0.5.1" maplit = "1.0.1" diff --git a/compiler/fmt/Cargo.toml b/compiler/fmt/Cargo.toml index 59dce02d63..a391239473 100644 --- a/compiler/fmt/Cargo.toml +++ b/compiler/fmt/Cargo.toml @@ -10,8 +10,6 @@ roc_collections = { path = "../collections" } roc_region = { path = "../region" } roc_module = { path = "../module" } roc_parse = { path = "../parse" } -roc_problem = { path = "../problem" } -roc_types = { path = "../types" } im = "14" # im and im-rc should always have the same version! im-rc = "14" # im and im-rc should always have the same version! bumpalo = { version = "3.2", features = ["collections"] } diff --git a/compiler/gen/Cargo.toml b/compiler/gen/Cargo.toml index 6480257d05..82b78ebe2b 100644 --- a/compiler/gen/Cargo.toml +++ b/compiler/gen/Cargo.toml @@ -12,7 +12,6 @@ roc_module = { path = "../module" } roc_problem = { path = "../problem" } roc_types = { path = "../types" } roc_builtins = { path = "../builtins" } -roc_constrain = { path = "../constrain" } roc_unify = { path = "../unify" } roc_solve = { path = "../solve" } roc_mono = { path = "../mono" } @@ -40,7 +39,6 @@ either = "1.6.1" # This way, GitHub Actions works and nobody's builds get broken. inkwell = { git = "https://github.com/rtfeldman/inkwell", tag = "llvm10-0.release3" } target-lexicon = "0.10" -libloading = "0.6" [dev-dependencies] roc_can = { path = "../can" } diff --git a/compiler/mono/Cargo.toml b/compiler/mono/Cargo.toml index 79734e8136..63947ca3f1 100644 --- a/compiler/mono/Cargo.toml +++ b/compiler/mono/Cargo.toml @@ -12,7 +12,6 @@ roc_module = { path = "../module" } roc_types = { path = "../types" } roc_can = { path = "../can" } roc_unify = { path = "../unify" } -roc_constrain = { path = "../constrain" } roc_solve = { path = "../solve" } roc_problem = { path = "../problem" } ven_pretty = { path = "../../vendor/pretty" } @@ -21,7 +20,6 @@ ven_ena = { path = "../../vendor/ena" } linked-hash-map = "0.5.4" [dev-dependencies] -roc_constrain = { path = "../constrain" } roc_load= { path = "../load" } roc_builtins = { path = "../builtins" } roc_parse = { path = "../parse" } diff --git a/compiler/solve/Cargo.toml b/compiler/solve/Cargo.toml index c0002905ab..16cec57617 100644 --- a/compiler/solve/Cargo.toml +++ b/compiler/solve/Cargo.toml @@ -12,11 +12,8 @@ roc_module = { path = "../module" } roc_types = { path = "../types" } roc_can = { path = "../can" } roc_unify = { path = "../unify" } -roc_constrain = { path = "../constrain" } -roc_builtins = { path = "../builtins" } [dev-dependencies] -roc_constrain = { path = "../constrain" } roc_load = { path = "../load" } roc_builtins = { path = "../builtins" } roc_problem = { path = "../problem" } diff --git a/compiler/test_gen/Cargo.toml b/compiler/test_gen/Cargo.toml index c591a99da5..4d7c03aad3 100644 --- a/compiler/test_gen/Cargo.toml +++ b/compiler/test_gen/Cargo.toml @@ -29,7 +29,6 @@ bumpalo = { version = "3.2", features = ["collections"] } inlinable_string = "0.1" either = "1.6.1" indoc = "0.3.3" -pretty_assertions = "0.5.1" libc = "0.2" # NOTE: rtfeldman/inkwell is a fork of TheDan64/inkwell which does not change anything. # diff --git a/compiler/types/Cargo.toml b/compiler/types/Cargo.toml index 21765d30ac..a45faf5515 100644 --- a/compiler/types/Cargo.toml +++ b/compiler/types/Cargo.toml @@ -9,8 +9,6 @@ license = "Apache-2.0" roc_collections = { path = "../collections" } roc_region = { path = "../region" } roc_module = { path = "../module" } -roc_parse = { path = "../parse" } -roc_problem = { path = "../problem" } ven_ena = { path = "../../vendor/ena" } inlinable_string = "0.1" diff --git a/editor/Cargo.toml b/editor/Cargo.toml index 6907cf9c5b..6adf1f8e77 100644 --- a/editor/Cargo.toml +++ b/editor/Cargo.toml @@ -15,16 +15,8 @@ roc_region = { path = "../compiler/region" } roc_module = { path = "../compiler/module" } roc_problem = { path = "../compiler/problem" } roc_types = { path = "../compiler/types" } -roc_builtins = { path = "../compiler/builtins" } -roc_constrain = { path = "../compiler/constrain" } -roc_unify = { path = "../compiler/unify" } -roc_solve = { path = "../compiler/solve" } -roc_mono = { path = "../compiler/mono" } -roc_load = { path = "../compiler/load" } -roc_gen = { path = "../compiler/gen" } roc_fmt = { path = "../compiler/fmt" } -roc_reporting = { path = "../compiler/reporting" } # TODO switch to clap 3.0.0 once it's out. Tried adding clap = "~3.0.0-beta.1" and cargo wouldn't accept it ven_graph = { path = "../vendor/pathfinding" } im = "14" # im and im-rc should always have the same version! @@ -34,25 +26,6 @@ inlinable_string = "0.1" arraystring = "0.3.0" libc = "0.2" page_size = "0.4" -# NOTE: rtfeldman/inkwell is a fork of TheDan64/inkwell which does not change anything. -# -# The reason for this fork is that the way Inkwell is designed, you have to use -# a particular branch (e.g. "llvm8-0") in Cargo.toml. That would be fine, except that -# breaking changes get pushed directly to that branch, which breaks our build -# without warning. -# -# We tried referencing a specific rev on TheDan64/inkwell directly (instead of branch), -# but although that worked locally, it did not work on GitHub Actions. (After a few -# hours of investigation, gave up trying to figure out why.) So this is the workaround: -# having an immutable tag on the rtfeldman/inkwell fork which points to -# a particular "release" of Inkwell. -# -# When we want to update Inkwell, we can sync up rtfeldman/inkwell to the latest -# commit of TheDan64/inkwell, push a new tag which points to the latest commit, -# change the tag value in this Cargo.toml to point to that tag, and `cargo update`. -# This way, GitHub Actions works and nobody's builds get broken. -inkwell = { git = "https://github.com/rtfeldman/inkwell", tag = "llvm10-0.release3" } -target-lexicon = "0.10" winit = "0.22" wgpu = "0.6" glyph_brush = "0.7" @@ -62,7 +35,6 @@ env_logger = "0.7" futures = "0.3" wgpu_glyph = "0.10" cgmath = "0.17.0" -itertools = "0.9.0" snafu = { version = "0.6", features = ["backtraces"] } colored = "2" pest = "2.1"