@@ -40,14 +40,33 @@ main() {
40
40
41
41
# test crate
42
42
cargo init --name foo $td
43
- echo ' cortex-m = "0.7.7"' >> $td /Cargo.toml
43
+ echo ' cortex-m = "0.7.7"' >> $td /Cargo.toml
44
44
echo ' cortex-m-rt = "0.7.3"' >> $td /Cargo.toml
45
- echo ' vcell = "0.1.3"' >> $td /Cargo.toml
45
+ echo ' vcell = "0.1.3"' >> $td /Cargo.toml
46
46
if [[ " $options " == * " --atomics" * ]]; then
47
47
echo ' portable-atomic = { version = "1.4", default-features = false }' >> $td /Cargo.toml
48
48
fi
49
- echo ' [profile.dev]' >> $td /Cargo.toml
50
- echo ' incremental = false' >> $td /Cargo.toml
49
+ echo ' [profile.dev]' >> $td /Cargo.toml
50
+ echo ' incremental = false' >> $td /Cargo.toml
51
+
52
+ echo ' [lints.rust]' >> $td /Cargo.toml
53
+ echo ' dead_code = "deny"' >> $td /Cargo.toml
54
+ echo ' improper_ctypes = "deny"' >> $td /Cargo.toml
55
+ echo ' missing_docs = "deny"' >> $td /Cargo.toml
56
+ echo ' no_mangle_generic_items = "deny"' >> $td /Cargo.toml
57
+ echo ' non_shorthand_field_patterns = "deny"' >> $td /Cargo.toml
58
+ echo ' overflowing_literals = "deny"' >> $td /Cargo.toml
59
+ echo ' path_statements = "deny"' >> $td /Cargo.toml
60
+ echo ' patterns_in_fns_without_body = "deny"' >> $td /Cargo.toml
61
+ echo ' unconditional_recursion = "deny"' >> $td /Cargo.toml
62
+ echo ' unused_allocation = "deny"' >> $td /Cargo.toml
63
+ echo ' unused_comparisons = "deny"' >> $td /Cargo.toml
64
+ echo ' unused_parens = "deny"' >> $td /Cargo.toml
65
+ echo ' while_true = "deny"' >> $td /Cargo.toml
66
+ if [[ " $RUST_TOOLCHAIN " == * " nightly" * ]]; then
67
+ echo ' private_bounds = "deny"' >> $td /Cargo.toml
68
+ echo ' private_interfaces = "deny"' >> $td /Cargo.toml
69
+ fi
51
70
52
71
case $VENDOR in
53
72
Atmel)
0 commit comments