summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-openapi/.cargo
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-13 15:00:46 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-13 15:00:46 -0700
commit4575478d953fae3068959feef80517cafc826fea (patch)
treec0e888c56e88df69d8cc2811e8f51069e1e33fbe /rust/fatcat-openapi/.cargo
parent94f72165f5b030c3189453249e05fab0dcf62d9b (diff)
downloadfatcat-cli-4575478d953fae3068959feef80517cafc826fea.tar.gz
fatcat-cli-4575478d953fae3068959feef80517cafc826fea.zip
copy codegen rust openapi client from fatcat repo
Diffstat (limited to 'rust/fatcat-openapi/.cargo')
-rw-r--r--rust/fatcat-openapi/.cargo/config18
1 files changed, 18 insertions, 0 deletions
diff --git a/rust/fatcat-openapi/.cargo/config b/rust/fatcat-openapi/.cargo/config
new file mode 100644
index 0000000..b8acc9c
--- /dev/null
+++ b/rust/fatcat-openapi/.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
+]