diesel: create a schema.rs include

* to satisfy the compiler with enabled warnings macro finding
  missing documentation strings, this patch will include an allow
  rule for the resulting 'schema.rs' file

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-06-30 13:42:56 +02:00
parent 205e1eff8c
commit 5534da7f29
2 changed files with 11 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
# For documentation on how to configure this file,
# see diesel.rs/guides/configuring-diesel-cli
# see https://diesel.rs/guides/configuring-diesel-cli
[print_schema]
file = "src/schema.rs"
#filter = { only_tables = [ "User", "UserRole" ] }
# includes the "#![allow(missing_docs)]"
patch_file = "src/missing_docs.patch"

8
src/missing_docs.patch Normal file
View File

@@ -0,0 +1,8 @@
--- src/schema.rs.orig 2020-06-30 13:35:01.826955973 +0200
+++ src/schema.rs 2020-06-30 13:35:26.640286611 +0200
@@ -1,3 +1,5 @@
+#![allow(missing_docs)]
+
table! {
claims (id) {
id -> Integer,