aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-12-20 13:40:23 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2025-01-08 12:07:31 +0200
commit211f1cae3a9b398073695fd8da6be9dae9566579 (patch)
tree029405a54c4184e8ddfa31387676681030e23142 /docs/markdown/snippets
parentf2b22f87a1cc18693e043c7cd1021af613d9dfef (diff)
downloadmeson-211f1cae3a9b398073695fd8da6be9dae9566579.zip
meson-211f1cae3a9b398073695fd8da6be9dae9566579.tar.gz
meson-211f1cae3a9b398073695fd8da6be9dae9566579.tar.bz2
rust: add warning_level=0 to downloaded Cargo subprojects
This adds --cap-lints allow, matching how Cargo builds them. In the case of Cargo, this is only applied to non-path dependencies. Without this change, clippy will complain about dependencies as well. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/cargo_cap_lints.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/snippets/cargo_cap_lints.md b/docs/markdown/snippets/cargo_cap_lints.md
new file mode 100644
index 0000000..9623ae1
--- /dev/null
+++ b/docs/markdown/snippets/cargo_cap_lints.md
@@ -0,0 +1,8 @@
+## `--cap-lints allow` used for Cargo subprojects
+
+Similar to Cargo itself, all downloaded Cargo subprojects automatically
+add the `--cap-lints allow` compiler argument, thus hiding any warnings
+from the compiler.
+
+Related to this, `warning_level=0` now translates into `--cap-lints allow`
+for Rust targets instead of `-A warnings`.