diff --git a/exercises/01_intro/00_welcome/Cargo.toml b/exercises/01_intro/00_welcome/Cargo.toml index 32210982b4..2e64321eb2 100644 --- a/exercises/01_intro/00_welcome/Cargo.toml +++ b/exercises/01_intro/00_welcome/Cargo.toml @@ -2,3 +2,9 @@ name = "welcome_00" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" \ No newline at end of file diff --git a/exercises/01_intro/01_syntax/Cargo.toml b/exercises/01_intro/01_syntax/Cargo.toml index e0badf25e4..1c50ba8f05 100644 --- a/exercises/01_intro/01_syntax/Cargo.toml +++ b/exercises/01_intro/01_syntax/Cargo.toml @@ -2,3 +2,9 @@ name = "syntax" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/02_basic_calculator/00_intro/Cargo.toml b/exercises/02_basic_calculator/00_intro/Cargo.toml index 52e72b13f4..b90a5294a7 100644 --- a/exercises/02_basic_calculator/00_intro/Cargo.toml +++ b/exercises/02_basic_calculator/00_intro/Cargo.toml @@ -2,3 +2,9 @@ name = "intro_01" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/02_basic_calculator/01_integers/Cargo.toml b/exercises/02_basic_calculator/01_integers/Cargo.toml index a1aaae2813..50e66e97a3 100644 --- a/exercises/02_basic_calculator/01_integers/Cargo.toml +++ b/exercises/02_basic_calculator/01_integers/Cargo.toml @@ -2,3 +2,9 @@ name = "integers" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/02_basic_calculator/02_variables/Cargo.toml b/exercises/02_basic_calculator/02_variables/Cargo.toml index 072de6328e..40dde0e8c0 100644 --- a/exercises/02_basic_calculator/02_variables/Cargo.toml +++ b/exercises/02_basic_calculator/02_variables/Cargo.toml @@ -2,3 +2,9 @@ name = "variables" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/02_basic_calculator/03_if_else/Cargo.toml b/exercises/02_basic_calculator/03_if_else/Cargo.toml index 44e715987f..f4c9c0b490 100644 --- a/exercises/02_basic_calculator/03_if_else/Cargo.toml +++ b/exercises/02_basic_calculator/03_if_else/Cargo.toml @@ -2,3 +2,9 @@ name = "if_else" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/02_basic_calculator/04_panics/Cargo.toml b/exercises/02_basic_calculator/04_panics/Cargo.toml index c4f4400720..0ab3397985 100644 --- a/exercises/02_basic_calculator/04_panics/Cargo.toml +++ b/exercises/02_basic_calculator/04_panics/Cargo.toml @@ -2,3 +2,9 @@ name = "panics" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/02_basic_calculator/05_factorial/Cargo.toml b/exercises/02_basic_calculator/05_factorial/Cargo.toml index 9f8aef9744..64088a3cdd 100644 --- a/exercises/02_basic_calculator/05_factorial/Cargo.toml +++ b/exercises/02_basic_calculator/05_factorial/Cargo.toml @@ -2,3 +2,9 @@ name = "factorial" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/02_basic_calculator/06_while/Cargo.toml b/exercises/02_basic_calculator/06_while/Cargo.toml index 6d89c61393..34c8eaf839 100644 --- a/exercises/02_basic_calculator/06_while/Cargo.toml +++ b/exercises/02_basic_calculator/06_while/Cargo.toml @@ -2,3 +2,9 @@ name = "while_" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/02_basic_calculator/07_for/Cargo.toml b/exercises/02_basic_calculator/07_for/Cargo.toml index 837c93b1f2..ac8c4a81f3 100644 --- a/exercises/02_basic_calculator/07_for/Cargo.toml +++ b/exercises/02_basic_calculator/07_for/Cargo.toml @@ -2,3 +2,9 @@ name = "for_" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/02_basic_calculator/08_overflow/Cargo.toml b/exercises/02_basic_calculator/08_overflow/Cargo.toml index 304031619c..b5bd80ee35 100644 --- a/exercises/02_basic_calculator/08_overflow/Cargo.toml +++ b/exercises/02_basic_calculator/08_overflow/Cargo.toml @@ -2,3 +2,9 @@ name = "overflow" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/02_basic_calculator/09_saturating/Cargo.toml b/exercises/02_basic_calculator/09_saturating/Cargo.toml index c3116515ba..6fd77a45d2 100644 --- a/exercises/02_basic_calculator/09_saturating/Cargo.toml +++ b/exercises/02_basic_calculator/09_saturating/Cargo.toml @@ -2,3 +2,9 @@ name = "saturating" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/02_basic_calculator/10_as_casting/Cargo.toml b/exercises/02_basic_calculator/10_as_casting/Cargo.toml index 0b03b5040c..b009f38cb8 100644 --- a/exercises/02_basic_calculator/10_as_casting/Cargo.toml +++ b/exercises/02_basic_calculator/10_as_casting/Cargo.toml @@ -2,3 +2,9 @@ name = "as_cast" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/03_ticket_v1/00_intro/Cargo.toml b/exercises/03_ticket_v1/00_intro/Cargo.toml index 4064cfb3ea..baf0a5de20 100644 --- a/exercises/03_ticket_v1/00_intro/Cargo.toml +++ b/exercises/03_ticket_v1/00_intro/Cargo.toml @@ -2,3 +2,9 @@ name = "intro_02" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/03_ticket_v1/01_struct/Cargo.toml b/exercises/03_ticket_v1/01_struct/Cargo.toml index 48a104a784..29bb908845 100644 --- a/exercises/03_ticket_v1/01_struct/Cargo.toml +++ b/exercises/03_ticket_v1/01_struct/Cargo.toml @@ -2,3 +2,9 @@ name = "struct_" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/03_ticket_v1/02_validation/Cargo.toml b/exercises/03_ticket_v1/02_validation/Cargo.toml index 8b81faa7a8..669c4fb788 100644 --- a/exercises/03_ticket_v1/02_validation/Cargo.toml +++ b/exercises/03_ticket_v1/02_validation/Cargo.toml @@ -5,3 +5,9 @@ edition = "2021" [dev-dependencies] common = { path = "../../../helpers/common" } + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow" diff --git a/exercises/03_ticket_v1/03_modules/Cargo.toml b/exercises/03_ticket_v1/03_modules/Cargo.toml index c50390b591..5290511f45 100644 --- a/exercises/03_ticket_v1/03_modules/Cargo.toml +++ b/exercises/03_ticket_v1/03_modules/Cargo.toml @@ -2,3 +2,9 @@ name = "modules" version = "0.1.0" edition = "2021" + +[lints.rust] +# We silence dead code warnings for the time being in order to reduce +# compiler noise. +# We'll re-enable them again once we explain how visibility works in Rust. +dead_code = "allow"