Make Rust warnings conditionally fatal

Set rustc flags to treat warnings as fatal if configured with
--enable-warnings.
This commit is contained in:
Taylor Yu
2018-06-15 17:27:19 -05:00
parent 945d871da5
commit 468bf58fa2
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -6,3 +6,6 @@
@RUST_DL@ [source.vendored-sources]
@RUST_DL@ directory = '@TOR_RUST_DEPENDENCIES@'
@RUST_WARN@ [build]
@RUST_WARN@ rustflags = [ "-D", "warnings" ]