summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-23 16:52:39 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-24 15:21:32 -0700
commitc373c6e3f3cac757cf49d8bb5ebdf0e131af6240 (patch)
treee5348279f0438c7bd82404781150c701666f8eff /rust/fatcat-api
parent10fb9a6cca1f7c5dcfbba48a84d14db7a1ee9273 (diff)
downloadfatcat-c373c6e3f3cac757cf49d8bb5ebdf0e131af6240.tar.gz
fatcat-c373c6e3f3cac757cf49d8bb5ebdf0e131af6240.zip
include cargo configs
Diffstat (limited to 'rust/fatcat-api')
-rw-r--r--rust/fatcat-api/.cargo/config18
1 files changed, 18 insertions, 0 deletions
diff --git a/rust/fatcat-api/.cargo/config b/rust/fatcat-api/.cargo/config
new file mode 100644
index 00000000..b8acc9c0
--- /dev/null
+++ b/rust/fatcat-api/.cargo/config
@@ -0,0 +1,18 @@
+[build]
+rustflags = [
+ "-W", "missing_docs", # detects missing documentation for public members
+
+ "-W", "trivial_casts", # detects trivial casts which could be removed
+
+ "-W", "trivial_numeric_casts", # detects trivial casts of numeric types which could be removed
+
+ "-W", "unsafe_code", # usage of `unsafe` code
+
+ "-W", "unused_qualifications", # detects unnecessarily qualified names
+
+ "-W", "unused_extern_crates", # extern crates that are never used
+
+ "-W", "unused_import_braces", # unnecessary braces around an imported item
+
+ "-D", "warnings", # all warnings should be denied
+]