From 89a5370b0a6230b1505ca4c19fc8c22bc706584f Mon Sep 17 00:00:00 2001 From: Carl Michael Skog Date: Tue, 5 May 2020 03:43:23 +0200 Subject: [PATCH] Cap lint levels for rustc Cap the lint levels to "warn". Some crate authors are anal about setting "deny(warnings)", which means that if we get a warning compiling this crate, the compile will fail. Override this by using the "--cap-lints" option. Just hardcode, as a first shot. --- mkRustCrate/lib/mkRustCrate/wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkRustCrate/lib/mkRustCrate/wrapper.sh b/mkRustCrate/lib/mkRustCrate/wrapper.sh index 978be41..29f6fab 100755 --- a/mkRustCrate/lib/mkRustCrate/wrapper.sh +++ b/mkRustCrate/lib/mkRustCrate/wrapper.sh @@ -28,4 +28,4 @@ then fi >&2 echo @cmd@ $depFlags "${args[@]}" -env @cmd@ $depFlags "${args[@]}" +env @cmd@ --cap-lints warn $depFlags "${args[@]}"