Skip to content

Commit

Permalink
Remove empty dependency tables (#1988)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
senekor authored Aug 25, 2024
1 parent 4d3483c commit 8bb2f36
Show file tree
Hide file tree
Showing 35 changed files with 3 additions and 82 deletions.
2 changes: 0 additions & 2 deletions exercises/concept/semi-structured-logs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ edition = "2021"

[features]
add-a-variant = []

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/accumulate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "accumulate"
version = "0.0.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/acronym/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "acronym"
version = "1.7.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/binary-search/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ edition = "2021"
name = "binary-search"
version = "1.3.0"

[dependencies]

[features]
generic = []

Expand Down
2 changes: 0 additions & 2 deletions exercises/practice/book-store/.meta/Cargo-example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "book_store"
version = "1.3.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/book-store/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "book_store"
version = "1.3.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/clock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "clock"
version = "2.4.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/crypto-square/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "crypto-square"
version = "0.1.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/decimal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "decimal"
version = "0.1.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/diamond/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "diamond"
version = "1.1.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/diffie-hellman/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ edition = "2021"
name = "diffie-hellman"
version = "0.1.0"

[dependencies]

[features]
big-primes = []
2 changes: 0 additions & 2 deletions exercises/practice/eliuds-eggs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "eliuds_eggs"
version = "1.0.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/high-scores/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[dependencies]

[package]
edition = "2021"
name = "high-scores"
Expand Down
4 changes: 0 additions & 4 deletions exercises/practice/kindergarten-garden/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
4 changes: 0 additions & 4 deletions exercises/practice/knapsack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
2 changes: 0 additions & 2 deletions exercises/practice/macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "macros"
version = "0.1.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/matrix/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "matrix"
version = "1.0.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/nth-prime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "nth_prime"
version = "2.1.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/palindrome-products/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "palindrome-products"
version = "1.2.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/perfect-numbers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "perfect_numbers"
version = "1.1.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/pig-latin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "pig-latin"
version = "1.0.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/poker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "poker"
version = "1.1.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/prime-factors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "prime_factors"
version = "1.1.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/proverb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "proverb"
version = "1.1.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/pythagorean-triplet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[dependencies]

[package]
edition = "2021"
name = "pythagorean_triplet"
Expand Down
8 changes: 3 additions & 5 deletions exercises/practice/reverse-string/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
[dependencies]

[features]
grapheme = []

[package]
edition = "2021"
name = "reverse_string"
version = "1.2.0"

[features]
grapheme = []
2 changes: 0 additions & 2 deletions exercises/practice/run-length-encoding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "run-length-encoding"
version = "1.1.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/saddle-points/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "saddle-points"
version = "1.3.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/scale-generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "scale_generator"
version = "2.0.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/series/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "series"
version = "0.1.0"

[dependencies]
2 changes: 0 additions & 2 deletions exercises/practice/two-fer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
edition = "2021"
name = "twofer"
version = "1.2.0"

[dependencies]
3 changes: 0 additions & 3 deletions exercises/practice/xorcism/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ name = "xorcism"
version = "0.1.0"
edition = "2021"


[dependencies]

[features]
io = []
4 changes: 0 additions & 4 deletions exercises/practice/yacht/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
2 changes: 0 additions & 2 deletions rust-tooling/generate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
4 changes: 0 additions & 4 deletions rust-tooling/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 8bb2f36

Please sign in to comment.