From c373c6e3f3cac757cf49d8bb5ebdf0e131af6240 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 23 May 2018 16:52:39 -0700 Subject: include cargo configs --- rust/.cargo/config | 2 ++ rust/.gitignore | 2 ++ rust/fatcat-api/.cargo/config | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 rust/.cargo/config create mode 100644 rust/fatcat-api/.cargo/config (limited to 'rust') diff --git a/rust/.cargo/config b/rust/.cargo/config new file mode 100644 index 00000000..38aee6bb --- /dev/null +++ b/rust/.cargo/config @@ -0,0 +1,2 @@ +[test] +test-threads = 1 diff --git a/rust/.gitignore b/rust/.gitignore index 2f7896d1..18b70ae0 100644 --- a/rust/.gitignore +++ b/rust/.gitignore @@ -1 +1,3 @@ target/ + +!.cargo 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 +] -- cgit v1.2.3