summaryrefslogtreecommitdiff
path: root/src/rust/.cargo
diff options
context:
space:
mode:
authorTaylor Yu <catalyst@torproject.org>2018-06-15 17:27:19 -0500
committerTaylor Yu <catalyst@torproject.org>2018-06-15 17:27:19 -0500
commit468bf58fa24d78bef8d0d017dcacb7da4c031c12 (patch)
tree358fd98a24adca2ae0cd148b572b5b9585fc7800 /src/rust/.cargo
parent945d871da54e6038fdabaf3b78a7a55b290ab6aa (diff)
downloadtor-468bf58fa24d78bef8d0d017dcacb7da4c031c12.tar.gz
tor-468bf58fa24d78bef8d0d017dcacb7da4c031c12.zip
Make Rust warnings conditionally fatal
Set rustc flags to treat warnings as fatal if configured with --enable-warnings.
Diffstat (limited to 'src/rust/.cargo')
-rw-r--r--src/rust/.cargo/config.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rust/.cargo/config.in b/src/rust/.cargo/config.in
index 301e7fdbe7..70481bbcbe 100644
--- a/src/rust/.cargo/config.in
+++ b/src/rust/.cargo/config.in
@@ -6,3 +6,6 @@
@RUST_DL@ [source.vendored-sources]
@RUST_DL@ directory = '@TOR_RUST_DEPENDENCIES@'
+
+@RUST_WARN@ [build]
+@RUST_WARN@ rustflags = [ "-D", "warnings" ] \ No newline at end of file