From 8eee67e2d6987cf476f96acd7f05dde42cfcfe75 Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Sun, 25 Aug 2024 13:46:36 +0200 Subject: [PATCH] Remove empty dependency tables This is a preparation to make it easier to detect if an exercise doesn't use any dependencies. The Rust analyzer currently fails on such exercises, so we plan to disable it in those cases. Hopefully a better solution can be found later. --- exercises/concept/semi-structured-logs/Cargo.toml | 2 -- exercises/practice/accumulate/Cargo.toml | 2 -- exercises/practice/acronym/Cargo.toml | 2 -- exercises/practice/binary-search/Cargo.toml | 2 -- exercises/practice/book-store/.meta/Cargo-example.toml | 2 -- exercises/practice/book-store/Cargo.toml | 2 -- exercises/practice/clock/Cargo.toml | 2 -- exercises/practice/crypto-square/Cargo.toml | 2 -- exercises/practice/decimal/Cargo.toml | 2 -- exercises/practice/diamond/Cargo.toml | 2 -- exercises/practice/diffie-hellman/Cargo.toml | 2 -- exercises/practice/eliuds-eggs/Cargo.toml | 2 -- exercises/practice/high-scores/Cargo.toml | 2 -- exercises/practice/kindergarten-garden/Cargo.toml | 4 ---- exercises/practice/knapsack/Cargo.toml | 4 ---- exercises/practice/macros/Cargo.toml | 2 -- exercises/practice/matrix/Cargo.toml | 2 -- exercises/practice/nth-prime/Cargo.toml | 2 -- exercises/practice/palindrome-products/Cargo.toml | 2 -- exercises/practice/perfect-numbers/Cargo.toml | 2 -- exercises/practice/pig-latin/Cargo.toml | 2 -- exercises/practice/poker/Cargo.toml | 2 -- exercises/practice/prime-factors/Cargo.toml | 2 -- exercises/practice/proverb/Cargo.toml | 2 -- exercises/practice/pythagorean-triplet/Cargo.toml | 2 -- exercises/practice/reverse-string/Cargo.toml | 8 +++----- exercises/practice/run-length-encoding/Cargo.toml | 2 -- exercises/practice/saddle-points/Cargo.toml | 2 -- exercises/practice/scale-generator/Cargo.toml | 2 -- exercises/practice/series/Cargo.toml | 2 -- exercises/practice/two-fer/Cargo.toml | 2 -- exercises/practice/xorcism/Cargo.toml | 3 --- exercises/practice/yacht/Cargo.toml | 4 ---- rust-tooling/generate/src/lib.rs | 2 -- rust-tooling/utils/Cargo.toml | 4 ---- 35 files changed, 3 insertions(+), 82 deletions(-) diff --git a/exercises/concept/semi-structured-logs/Cargo.toml b/exercises/concept/semi-structured-logs/Cargo.toml index 166e966a1..5e8e3d53e 100644 --- a/exercises/concept/semi-structured-logs/Cargo.toml +++ b/exercises/concept/semi-structured-logs/Cargo.toml @@ -5,5 +5,3 @@ edition = "2021" [features] add-a-variant = [] - -[dependencies] diff --git a/exercises/practice/accumulate/Cargo.toml b/exercises/practice/accumulate/Cargo.toml index e9add962f..795e2befd 100644 --- a/exercises/practice/accumulate/Cargo.toml +++ b/exercises/practice/accumulate/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "accumulate" version = "0.0.0" - -[dependencies] diff --git a/exercises/practice/acronym/Cargo.toml b/exercises/practice/acronym/Cargo.toml index d1db9db39..cc0c031d6 100644 --- a/exercises/practice/acronym/Cargo.toml +++ b/exercises/practice/acronym/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "acronym" version = "1.7.0" - -[dependencies] diff --git a/exercises/practice/binary-search/Cargo.toml b/exercises/practice/binary-search/Cargo.toml index ec75216c6..5e8ac2fd9 100644 --- a/exercises/practice/binary-search/Cargo.toml +++ b/exercises/practice/binary-search/Cargo.toml @@ -3,8 +3,6 @@ edition = "2021" name = "binary-search" version = "1.3.0" -[dependencies] - [features] generic = [] diff --git a/exercises/practice/book-store/.meta/Cargo-example.toml b/exercises/practice/book-store/.meta/Cargo-example.toml index 50711c01a..767b9c1e8 100644 --- a/exercises/practice/book-store/.meta/Cargo-example.toml +++ b/exercises/practice/book-store/.meta/Cargo-example.toml @@ -2,5 +2,3 @@ edition = "2021" name = "book_store" version = "1.3.0" - -[dependencies] diff --git a/exercises/practice/book-store/Cargo.toml b/exercises/practice/book-store/Cargo.toml index 50711c01a..767b9c1e8 100644 --- a/exercises/practice/book-store/Cargo.toml +++ b/exercises/practice/book-store/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "book_store" version = "1.3.0" - -[dependencies] diff --git a/exercises/practice/clock/Cargo.toml b/exercises/practice/clock/Cargo.toml index ca943d67c..5c1ff8daf 100644 --- a/exercises/practice/clock/Cargo.toml +++ b/exercises/practice/clock/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "clock" version = "2.4.0" - -[dependencies] diff --git a/exercises/practice/crypto-square/Cargo.toml b/exercises/practice/crypto-square/Cargo.toml index 0363ae0c8..e617068eb 100644 --- a/exercises/practice/crypto-square/Cargo.toml +++ b/exercises/practice/crypto-square/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "crypto-square" version = "0.1.0" - -[dependencies] diff --git a/exercises/practice/decimal/Cargo.toml b/exercises/practice/decimal/Cargo.toml index 6ddb62742..6f1d36ac7 100644 --- a/exercises/practice/decimal/Cargo.toml +++ b/exercises/practice/decimal/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "decimal" version = "0.1.0" - -[dependencies] diff --git a/exercises/practice/diamond/Cargo.toml b/exercises/practice/diamond/Cargo.toml index f5357766f..26c54dcc3 100644 --- a/exercises/practice/diamond/Cargo.toml +++ b/exercises/practice/diamond/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "diamond" version = "1.1.0" - -[dependencies] diff --git a/exercises/practice/diffie-hellman/Cargo.toml b/exercises/practice/diffie-hellman/Cargo.toml index c76e7ab34..5b588a15e 100644 --- a/exercises/practice/diffie-hellman/Cargo.toml +++ b/exercises/practice/diffie-hellman/Cargo.toml @@ -3,7 +3,5 @@ edition = "2021" name = "diffie-hellman" version = "0.1.0" -[dependencies] - [features] big-primes = [] diff --git a/exercises/practice/eliuds-eggs/Cargo.toml b/exercises/practice/eliuds-eggs/Cargo.toml index 5f9d055dc..b76c171e1 100644 --- a/exercises/practice/eliuds-eggs/Cargo.toml +++ b/exercises/practice/eliuds-eggs/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "eliuds_eggs" version = "1.0.0" - -[dependencies] diff --git a/exercises/practice/high-scores/Cargo.toml b/exercises/practice/high-scores/Cargo.toml index 6e7360a66..78c9a491c 100644 --- a/exercises/practice/high-scores/Cargo.toml +++ b/exercises/practice/high-scores/Cargo.toml @@ -1,5 +1,3 @@ -[dependencies] - [package] edition = "2021" name = "high-scores" diff --git a/exercises/practice/kindergarten-garden/Cargo.toml b/exercises/practice/kindergarten-garden/Cargo.toml index e29f1102b..1c8ddf929 100644 --- a/exercises/practice/kindergarten-garden/Cargo.toml +++ b/exercises/practice/kindergarten-garden/Cargo.toml @@ -2,7 +2,3 @@ name = "kindergarten_garden" version = "0.1.0" edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] diff --git a/exercises/practice/knapsack/Cargo.toml b/exercises/practice/knapsack/Cargo.toml index 7b1d5d915..30ab86843 100644 --- a/exercises/practice/knapsack/Cargo.toml +++ b/exercises/practice/knapsack/Cargo.toml @@ -2,7 +2,3 @@ name = "knapsack" version = "0.1.0" edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] diff --git a/exercises/practice/macros/Cargo.toml b/exercises/practice/macros/Cargo.toml index 8c82d2e60..4497ae5d8 100644 --- a/exercises/practice/macros/Cargo.toml +++ b/exercises/practice/macros/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "macros" version = "0.1.0" - -[dependencies] diff --git a/exercises/practice/matrix/Cargo.toml b/exercises/practice/matrix/Cargo.toml index 6ecb93ac8..7797f0f17 100644 --- a/exercises/practice/matrix/Cargo.toml +++ b/exercises/practice/matrix/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "matrix" version = "1.0.0" - -[dependencies] diff --git a/exercises/practice/nth-prime/Cargo.toml b/exercises/practice/nth-prime/Cargo.toml index 11a62d103..e40ac1e89 100644 --- a/exercises/practice/nth-prime/Cargo.toml +++ b/exercises/practice/nth-prime/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "nth_prime" version = "2.1.0" - -[dependencies] diff --git a/exercises/practice/palindrome-products/Cargo.toml b/exercises/practice/palindrome-products/Cargo.toml index a082817c1..987f9015b 100644 --- a/exercises/practice/palindrome-products/Cargo.toml +++ b/exercises/practice/palindrome-products/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "palindrome-products" version = "1.2.0" - -[dependencies] diff --git a/exercises/practice/perfect-numbers/Cargo.toml b/exercises/practice/perfect-numbers/Cargo.toml index d24b1e132..39a1ec152 100644 --- a/exercises/practice/perfect-numbers/Cargo.toml +++ b/exercises/practice/perfect-numbers/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "perfect_numbers" version = "1.1.0" - -[dependencies] diff --git a/exercises/practice/pig-latin/Cargo.toml b/exercises/practice/pig-latin/Cargo.toml index 7ae4cf403..d7ab70e86 100644 --- a/exercises/practice/pig-latin/Cargo.toml +++ b/exercises/practice/pig-latin/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "pig-latin" version = "1.0.0" - -[dependencies] diff --git a/exercises/practice/poker/Cargo.toml b/exercises/practice/poker/Cargo.toml index d0c6bdcb6..208d0e94c 100644 --- a/exercises/practice/poker/Cargo.toml +++ b/exercises/practice/poker/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "poker" version = "1.1.0" - -[dependencies] diff --git a/exercises/practice/prime-factors/Cargo.toml b/exercises/practice/prime-factors/Cargo.toml index 18940fcd9..44211ce91 100644 --- a/exercises/practice/prime-factors/Cargo.toml +++ b/exercises/practice/prime-factors/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "prime_factors" version = "1.1.0" - -[dependencies] diff --git a/exercises/practice/proverb/Cargo.toml b/exercises/practice/proverb/Cargo.toml index eb3977050..8f9444d35 100644 --- a/exercises/practice/proverb/Cargo.toml +++ b/exercises/practice/proverb/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "proverb" version = "1.1.0" - -[dependencies] diff --git a/exercises/practice/pythagorean-triplet/Cargo.toml b/exercises/practice/pythagorean-triplet/Cargo.toml index 517618ef1..27e28c0c3 100644 --- a/exercises/practice/pythagorean-triplet/Cargo.toml +++ b/exercises/practice/pythagorean-triplet/Cargo.toml @@ -1,5 +1,3 @@ -[dependencies] - [package] edition = "2021" name = "pythagorean_triplet" diff --git a/exercises/practice/reverse-string/Cargo.toml b/exercises/practice/reverse-string/Cargo.toml index 52b902c82..403e50ab1 100644 --- a/exercises/practice/reverse-string/Cargo.toml +++ b/exercises/practice/reverse-string/Cargo.toml @@ -1,9 +1,7 @@ -[dependencies] - -[features] -grapheme = [] - [package] edition = "2021" name = "reverse_string" version = "1.2.0" + +[features] +grapheme = [] diff --git a/exercises/practice/run-length-encoding/Cargo.toml b/exercises/practice/run-length-encoding/Cargo.toml index 6af6432b9..ab5768d1f 100644 --- a/exercises/practice/run-length-encoding/Cargo.toml +++ b/exercises/practice/run-length-encoding/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "run-length-encoding" version = "1.1.0" - -[dependencies] diff --git a/exercises/practice/saddle-points/Cargo.toml b/exercises/practice/saddle-points/Cargo.toml index 9507ab2ad..968176620 100644 --- a/exercises/practice/saddle-points/Cargo.toml +++ b/exercises/practice/saddle-points/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "saddle-points" version = "1.3.0" - -[dependencies] diff --git a/exercises/practice/scale-generator/Cargo.toml b/exercises/practice/scale-generator/Cargo.toml index 65ed9ae27..04a14757b 100644 --- a/exercises/practice/scale-generator/Cargo.toml +++ b/exercises/practice/scale-generator/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "scale_generator" version = "2.0.0" - -[dependencies] diff --git a/exercises/practice/series/Cargo.toml b/exercises/practice/series/Cargo.toml index 4588185aa..6366609a3 100644 --- a/exercises/practice/series/Cargo.toml +++ b/exercises/practice/series/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "series" version = "0.1.0" - -[dependencies] diff --git a/exercises/practice/two-fer/Cargo.toml b/exercises/practice/two-fer/Cargo.toml index c8075f3e9..e3345023e 100644 --- a/exercises/practice/two-fer/Cargo.toml +++ b/exercises/practice/two-fer/Cargo.toml @@ -2,5 +2,3 @@ edition = "2021" name = "twofer" version = "1.2.0" - -[dependencies] diff --git a/exercises/practice/xorcism/Cargo.toml b/exercises/practice/xorcism/Cargo.toml index f72738b0d..ee70fa468 100644 --- a/exercises/practice/xorcism/Cargo.toml +++ b/exercises/practice/xorcism/Cargo.toml @@ -3,8 +3,5 @@ name = "xorcism" version = "0.1.0" edition = "2021" - -[dependencies] - [features] io = [] diff --git a/exercises/practice/yacht/Cargo.toml b/exercises/practice/yacht/Cargo.toml index 138c413e0..2c3813008 100644 --- a/exercises/practice/yacht/Cargo.toml +++ b/exercises/practice/yacht/Cargo.toml @@ -2,7 +2,3 @@ name = "yacht" version = "0.1.0" edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] diff --git a/rust-tooling/generate/src/lib.rs b/rust-tooling/generate/src/lib.rs index 0c7d31aae..e397a586d 100644 --- a/rust-tooling/generate/src/lib.rs +++ b/rust-tooling/generate/src/lib.rs @@ -48,8 +48,6 @@ fn generate_manifest(crate_name: &str) -> String { "edition = \"2021\"\n", "name = \"{crate_name}\"\n", "version = \"1.0.0\"\n", - "\n", - "[dependencies]\n", ), crate_name = crate_name ) diff --git a/rust-tooling/utils/Cargo.toml b/rust-tooling/utils/Cargo.toml index a0cba9a27..bd645df12 100644 --- a/rust-tooling/utils/Cargo.toml +++ b/rust-tooling/utils/Cargo.toml @@ -2,7 +2,3 @@ name = "utils" version = "0.1.0" edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies]