aboutsummaryrefslogtreecommitdiff
path: root/src/rust/.cargo/config.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/rust/.cargo/config.in')
-rw-r--r--src/rust/.cargo/config.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rust/.cargo/config.in b/src/rust/.cargo/config.in
new file mode 100644
index 0000000000..6eddc75459
--- /dev/null
+++ b/src/rust/.cargo/config.in
@@ -0,0 +1,12 @@
+[source]
+
+@RUST_DL@ [source.crates-io]
+@RUST_DL@ registry = 'https://github.com/rust-lang/crates.io-index'
+@RUST_DL@ replace-with = 'vendored-sources'
+
+@RUST_DL@ [source.vendored-sources]
+@RUST_DL@ directory = '@TOR_RUST_DEPENDENCIES@'
+
+[build]
+@RUST_WARN@ rustflags = [ "-D", "warnings" ]
+@RUST_TARGET_PROP@