diff --git a/exercises/01_intro/00_welcome/Cargo.toml b/exercises/01_intro/00_welcome/Cargo.toml index 3221098..2e64321 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 e0badf2..1c50ba8 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 52e72b1..b90a529 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 a1aaae2..50e66e9 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 072de63..40dde0e 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 44e7159..f4c9c0b 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 c4f4400..0ab3397 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 9f8aef9..64088a3 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 6d89c61..34c8eaf 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 837c93b..ac8c4a8 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 3040316..b5bd80e 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 c311651..6fd77a4 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 0b03b50..b009f38 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 4064cfb..baf0a5d 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 48a104a..29bb908 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 8b81faa..669c4fb 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 c50390b..5290511 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"