diff --git a/exercises/01_intro/00_welcome/Cargo.toml b/exercises/01_intro/00_welcome/Cargo.toml index 32210982b..2e64321eb 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 e0badf25e..1c50ba8f0 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 52e72b13f..b90a5294a 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 a1aaae281..50e66e97a 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 072de6328..40dde0e8c 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 44e715987..f4c9c0b49 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 c4f440072..0ab339798 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 9f8aef974..64088a3cd 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 6d89c6139..34c8eaf83 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 837c93b1f..ac8c4a81f 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 304031619..b5bd80ee3 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 c3116515b..6fd77a45d 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 0b03b5040..b009f38cb 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 4064cfb3e..baf0a5de2 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 48a104a78..29bb90884 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 8b81faa7a..669c4fb78 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 c50390b59..5290511f4 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"