From 9fca66aa89d12a11dc8758d40dd09e340826c7d1 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 27 Sep 2018 08:13:58 +0200 Subject: [PATCH] Forbid unsafe code in all crates --- bin/core/imag-annotate/src/main.rs | 2 ++ bin/core/imag-category/src/main.rs | 2 ++ bin/core/imag-diagnostics/src/main.rs | 2 ++ bin/core/imag-edit/src/main.rs | 2 ++ bin/core/imag-git/src/main.rs | 2 ++ bin/core/imag-gps/src/main.rs | 2 ++ bin/core/imag-grep/src/main.rs | 2 ++ bin/core/imag-ids/src/main.rs | 2 ++ bin/core/imag-init/src/main.rs | 2 ++ bin/core/imag-link/src/main.rs | 2 ++ bin/core/imag-mv/src/main.rs | 2 ++ bin/core/imag-ref/src/main.rs | 2 ++ bin/core/imag-store/src/main.rs | 2 ++ bin/core/imag-tag/src/main.rs | 2 ++ bin/core/imag-view/src/main.rs | 2 ++ bin/core/imag/src/main.rs | 2 ++ bin/domain/imag-bookmark/src/main.rs | 2 ++ bin/domain/imag-contact/src/main.rs | 2 ++ bin/domain/imag-diary/src/main.rs | 2 ++ bin/domain/imag-habit/src/main.rs | 2 ++ bin/domain/imag-log/src/main.rs | 2 ++ bin/domain/imag-mail/src/main.rs | 2 ++ bin/domain/imag-notes/src/main.rs | 2 ++ bin/domain/imag-timetrack/src/main.rs | 2 ++ bin/domain/imag-todo/src/main.rs | 2 ++ bin/domain/imag-wiki/src/main.rs | 2 ++ lib/core/libimagerror/src/lib.rs | 2 ++ lib/core/libimagrt/src/lib.rs | 2 ++ lib/core/libimagstore/src/lib.rs | 2 ++ lib/core/libimagstore/src/storeid.rs | 1 - lib/domain/libimagbookmark/src/lib.rs | 2 ++ lib/domain/libimagcontact/src/lib.rs | 2 ++ lib/domain/libimagdiary/src/lib.rs | 2 ++ lib/domain/libimaghabit/src/lib.rs | 2 ++ lib/domain/libimaglog/src/lib.rs | 2 ++ lib/domain/libimagmail/src/lib.rs | 2 ++ lib/domain/libimagnotes/src/lib.rs | 2 ++ lib/domain/libimagtimetrack/src/lib.rs | 2 ++ lib/domain/libimagtodo/src/lib.rs | 2 ++ lib/domain/libimagwiki/src/lib.rs | 2 ++ lib/entry/libimagentryannotation/src/lib.rs | 2 ++ lib/entry/libimagentrycategory/src/lib.rs | 2 ++ lib/entry/libimagentrydatetime/src/lib.rs | 2 ++ lib/entry/libimagentryedit/src/lib.rs | 2 ++ lib/entry/libimagentryfilter/src/lib.rs | 2 ++ lib/entry/libimagentrygps/src/lib.rs | 2 ++ lib/entry/libimagentrylink/src/lib.rs | 2 ++ lib/entry/libimagentrymarkdown/src/lib.rs | 2 ++ lib/entry/libimagentryref/src/lib.rs | 2 ++ lib/entry/libimagentrytag/src/lib.rs | 2 ++ lib/entry/libimagentryutil/src/lib.rs | 2 ++ lib/entry/libimagentryview/src/lib.rs | 2 ++ lib/etc/libimaginteraction/src/lib.rs | 2 ++ lib/etc/libimagnotification/src/lib.rs | 2 ++ lib/etc/libimagtimeui/src/lib.rs | 2 ++ lib/etc/libimagutil/src/lib.rs | 2 ++ 56 files changed, 110 insertions(+), 1 deletion(-) diff --git a/bin/core/imag-annotate/src/main.rs b/bin/core/imag-annotate/src/main.rs index 5beb0c1b..b365373a 100644 --- a/bin/core/imag-annotate/src/main.rs +++ b/bin/core/imag-annotate/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-category/src/main.rs b/bin/core/imag-category/src/main.rs index e13d49e3..225aa402 100644 --- a/bin/core/imag-category/src/main.rs +++ b/bin/core/imag-category/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-diagnostics/src/main.rs b/bin/core/imag-diagnostics/src/main.rs index 5c592db0..8459ed31 100644 --- a/bin/core/imag-diagnostics/src/main.rs +++ b/bin/core/imag-diagnostics/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-edit/src/main.rs b/bin/core/imag-edit/src/main.rs index 6d4ac384..a4ad919a 100644 --- a/bin/core/imag-edit/src/main.rs +++ b/bin/core/imag-edit/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-git/src/main.rs b/bin/core/imag-git/src/main.rs index a5f370f9..0b5aa584 100644 --- a/bin/core/imag-git/src/main.rs +++ b/bin/core/imag-git/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-gps/src/main.rs b/bin/core/imag-gps/src/main.rs index 50c94f61..afa3eb71 100644 --- a/bin/core/imag-gps/src/main.rs +++ b/bin/core/imag-gps/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-grep/src/main.rs b/bin/core/imag-grep/src/main.rs index e9db9b7b..a5df01d6 100644 --- a/bin/core/imag-grep/src/main.rs +++ b/bin/core/imag-grep/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-ids/src/main.rs b/bin/core/imag-ids/src/main.rs index 56c31026..3e809a8e 100644 --- a/bin/core/imag-ids/src/main.rs +++ b/bin/core/imag-ids/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-init/src/main.rs b/bin/core/imag-init/src/main.rs index ef899630..1194493e 100644 --- a/bin/core/imag-init/src/main.rs +++ b/bin/core/imag-init/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-link/src/main.rs b/bin/core/imag-link/src/main.rs index 5d83d6be..9f1f3285 100644 --- a/bin/core/imag-link/src/main.rs +++ b/bin/core/imag-link/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-mv/src/main.rs b/bin/core/imag-mv/src/main.rs index 1e77fce8..4210e2cd 100644 --- a/bin/core/imag-mv/src/main.rs +++ b/bin/core/imag-mv/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-ref/src/main.rs b/bin/core/imag-ref/src/main.rs index c0f22f95..85c802e2 100644 --- a/bin/core/imag-ref/src/main.rs +++ b/bin/core/imag-ref/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-store/src/main.rs b/bin/core/imag-store/src/main.rs index 5328c3ac..e368dfef 100644 --- a/bin/core/imag-store/src/main.rs +++ b/bin/core/imag-store/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-tag/src/main.rs b/bin/core/imag-tag/src/main.rs index 2b5349d4..e3dc398f 100644 --- a/bin/core/imag-tag/src/main.rs +++ b/bin/core/imag-tag/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag-view/src/main.rs b/bin/core/imag-view/src/main.rs index 859e5af5..26d21f2c 100644 --- a/bin/core/imag-view/src/main.rs +++ b/bin/core/imag-view/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/core/imag/src/main.rs b/bin/core/imag/src/main.rs index 55e4e6a7..58dc4b97 100644 --- a/bin/core/imag/src/main.rs +++ b/bin/core/imag/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/domain/imag-bookmark/src/main.rs b/bin/domain/imag-bookmark/src/main.rs index 2d0e22ff..79508c90 100644 --- a/bin/domain/imag-bookmark/src/main.rs +++ b/bin/domain/imag-bookmark/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/domain/imag-contact/src/main.rs b/bin/domain/imag-contact/src/main.rs index 68f47a49..c2b4bbc2 100644 --- a/bin/domain/imag-contact/src/main.rs +++ b/bin/domain/imag-contact/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/domain/imag-diary/src/main.rs b/bin/domain/imag-diary/src/main.rs index 73a999b5..4c377708 100644 --- a/bin/domain/imag-diary/src/main.rs +++ b/bin/domain/imag-diary/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/domain/imag-habit/src/main.rs b/bin/domain/imag-habit/src/main.rs index 36d6ce1c..3f355817 100644 --- a/bin/domain/imag-habit/src/main.rs +++ b/bin/domain/imag-habit/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/domain/imag-log/src/main.rs b/bin/domain/imag-log/src/main.rs index 0be4003e..1987a571 100644 --- a/bin/domain/imag-log/src/main.rs +++ b/bin/domain/imag-log/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/domain/imag-mail/src/main.rs b/bin/domain/imag-mail/src/main.rs index d43653c5..8b2a9769 100644 --- a/bin/domain/imag-mail/src/main.rs +++ b/bin/domain/imag-mail/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/domain/imag-notes/src/main.rs b/bin/domain/imag-notes/src/main.rs index c7b11300..956b1c7a 100644 --- a/bin/domain/imag-notes/src/main.rs +++ b/bin/domain/imag-notes/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/domain/imag-timetrack/src/main.rs b/bin/domain/imag-timetrack/src/main.rs index a17cd26c..91f84ff1 100644 --- a/bin/domain/imag-timetrack/src/main.rs +++ b/bin/domain/imag-timetrack/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/domain/imag-todo/src/main.rs b/bin/domain/imag-todo/src/main.rs index 21e477cc..abcab056 100644 --- a/bin/domain/imag-todo/src/main.rs +++ b/bin/domain/imag-todo/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( non_camel_case_types, non_snake_case, diff --git a/bin/domain/imag-wiki/src/main.rs b/bin/domain/imag-wiki/src/main.rs index c8f55267..c064f720 100644 --- a/bin/domain/imag-wiki/src/main.rs +++ b/bin/domain/imag-wiki/src/main.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + extern crate clap; extern crate regex; extern crate filters; diff --git a/lib/core/libimagerror/src/lib.rs b/lib/core/libimagerror/src/lib.rs index fba36561..74195c33 100644 --- a/lib/core/libimagerror/src/lib.rs +++ b/lib/core/libimagerror/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( dead_code, non_camel_case_types, diff --git a/lib/core/libimagrt/src/lib.rs b/lib/core/libimagrt/src/lib.rs index aff768d5..edae19fe 100644 --- a/lib/core/libimagrt/src/lib.rs +++ b/lib/core/libimagrt/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/core/libimagstore/src/lib.rs b/lib/core/libimagstore/src/lib.rs index 3fc544b6..53337da3 100644 --- a/lib/core/libimagstore/src/lib.rs +++ b/lib/core/libimagstore/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/core/libimagstore/src/storeid.rs b/lib/core/libimagstore/src/storeid.rs index 5a2fe754..dbb061d4 100644 --- a/lib/core/libimagstore/src/storeid.rs +++ b/lib/core/libimagstore/src/storeid.rs @@ -224,7 +224,6 @@ macro_rules! module_entry_path_mod { #[deny(missing_docs, missing_copy_implementations, trivial_casts, trivial_numeric_casts, - unsafe_code, unstable_features, unused_import_braces, unused_qualifications, unused_imports)] diff --git a/lib/domain/libimagbookmark/src/lib.rs b/lib/domain/libimagbookmark/src/lib.rs index 0e89e20d..f7f44925 100644 --- a/lib/domain/libimagbookmark/src/lib.rs +++ b/lib/domain/libimagbookmark/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/domain/libimagcontact/src/lib.rs b/lib/domain/libimagcontact/src/lib.rs index 7bebea9c..0cfdd96e 100644 --- a/lib/domain/libimagcontact/src/lib.rs +++ b/lib/domain/libimagcontact/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( dead_code, non_camel_case_types, diff --git a/lib/domain/libimagdiary/src/lib.rs b/lib/domain/libimagdiary/src/lib.rs index ae41c1e3..8074ce7a 100644 --- a/lib/domain/libimagdiary/src/lib.rs +++ b/lib/domain/libimagdiary/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/domain/libimaghabit/src/lib.rs b/lib/domain/libimaghabit/src/lib.rs index c230756f..6b3edbec 100644 --- a/lib/domain/libimaghabit/src/lib.rs +++ b/lib/domain/libimaghabit/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( dead_code, non_camel_case_types, diff --git a/lib/domain/libimaglog/src/lib.rs b/lib/domain/libimaglog/src/lib.rs index dd35928b..d4f4a3b4 100644 --- a/lib/domain/libimaglog/src/lib.rs +++ b/lib/domain/libimaglog/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( dead_code, non_camel_case_types, diff --git a/lib/domain/libimagmail/src/lib.rs b/lib/domain/libimagmail/src/lib.rs index fc883404..976c620d 100644 --- a/lib/domain/libimagmail/src/lib.rs +++ b/lib/domain/libimagmail/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/domain/libimagnotes/src/lib.rs b/lib/domain/libimagnotes/src/lib.rs index c1666519..4dd5d78b 100644 --- a/lib/domain/libimagnotes/src/lib.rs +++ b/lib/domain/libimagnotes/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/domain/libimagtimetrack/src/lib.rs b/lib/domain/libimagtimetrack/src/lib.rs index 37fbbc7b..b8f47f81 100644 --- a/lib/domain/libimagtimetrack/src/lib.rs +++ b/lib/domain/libimagtimetrack/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/domain/libimagtodo/src/lib.rs b/lib/domain/libimagtodo/src/lib.rs index b28b2831..30583837 100644 --- a/lib/domain/libimagtodo/src/lib.rs +++ b/lib/domain/libimagtodo/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/domain/libimagwiki/src/lib.rs b/lib/domain/libimagwiki/src/lib.rs index abfa9f4c..89603012 100644 --- a/lib/domain/libimagwiki/src/lib.rs +++ b/lib/domain/libimagwiki/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/entry/libimagentryannotation/src/lib.rs b/lib/entry/libimagentryannotation/src/lib.rs index cb904135..8cc4f5ce 100644 --- a/lib/entry/libimagentryannotation/src/lib.rs +++ b/lib/entry/libimagentryannotation/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/entry/libimagentrycategory/src/lib.rs b/lib/entry/libimagentrycategory/src/lib.rs index 28b1cf59..97d97032 100644 --- a/lib/entry/libimagentrycategory/src/lib.rs +++ b/lib/entry/libimagentrycategory/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/entry/libimagentrydatetime/src/lib.rs b/lib/entry/libimagentrydatetime/src/lib.rs index 37f59035..b876ee4e 100644 --- a/lib/entry/libimagentrydatetime/src/lib.rs +++ b/lib/entry/libimagentrydatetime/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/entry/libimagentryedit/src/lib.rs b/lib/entry/libimagentryedit/src/lib.rs index 6de64153..7079ada6 100644 --- a/lib/entry/libimagentryedit/src/lib.rs +++ b/lib/entry/libimagentryedit/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/entry/libimagentryfilter/src/lib.rs b/lib/entry/libimagentryfilter/src/lib.rs index 2a58f2af..0fe204cf 100644 --- a/lib/entry/libimagentryfilter/src/lib.rs +++ b/lib/entry/libimagentryfilter/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( dead_code, non_camel_case_types, diff --git a/lib/entry/libimagentrygps/src/lib.rs b/lib/entry/libimagentrygps/src/lib.rs index 15397ad5..bf37137a 100644 --- a/lib/entry/libimagentrygps/src/lib.rs +++ b/lib/entry/libimagentrygps/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( dead_code, non_camel_case_types, diff --git a/lib/entry/libimagentrylink/src/lib.rs b/lib/entry/libimagentrylink/src/lib.rs index 72b144d6..2f22d220 100644 --- a/lib/entry/libimagentrylink/src/lib.rs +++ b/lib/entry/libimagentrylink/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/entry/libimagentrymarkdown/src/lib.rs b/lib/entry/libimagentrymarkdown/src/lib.rs index 18b8d474..eaa56a4c 100644 --- a/lib/entry/libimagentrymarkdown/src/lib.rs +++ b/lib/entry/libimagentrymarkdown/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/entry/libimagentryref/src/lib.rs b/lib/entry/libimagentryref/src/lib.rs index 0747c916..8439b13f 100644 --- a/lib/entry/libimagentryref/src/lib.rs +++ b/lib/entry/libimagentryref/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/entry/libimagentrytag/src/lib.rs b/lib/entry/libimagentrytag/src/lib.rs index 6d5f46e6..cf2817ec 100644 --- a/lib/entry/libimagentrytag/src/lib.rs +++ b/lib/entry/libimagentrytag/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/entry/libimagentryutil/src/lib.rs b/lib/entry/libimagentryutil/src/lib.rs index f484d829..dfee282b 100644 --- a/lib/entry/libimagentryutil/src/lib.rs +++ b/lib/entry/libimagentryutil/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/entry/libimagentryview/src/lib.rs b/lib/entry/libimagentryview/src/lib.rs index 19d40baa..2617f1c8 100644 --- a/lib/entry/libimagentryview/src/lib.rs +++ b/lib/entry/libimagentryview/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/etc/libimaginteraction/src/lib.rs b/lib/etc/libimaginteraction/src/lib.rs index a2dc5d52..79360f9a 100644 --- a/lib/etc/libimaginteraction/src/lib.rs +++ b/lib/etc/libimaginteraction/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![recursion_limit="256"] #![deny( diff --git a/lib/etc/libimagnotification/src/lib.rs b/lib/etc/libimagnotification/src/lib.rs index a64b3f43..afb326e2 100644 --- a/lib/etc/libimagnotification/src/lib.rs +++ b/lib/etc/libimagnotification/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( dead_code, non_camel_case_types, diff --git a/lib/etc/libimagtimeui/src/lib.rs b/lib/etc/libimagtimeui/src/lib.rs index a70611a5..e2f7fcfd 100644 --- a/lib/etc/libimagtimeui/src/lib.rs +++ b/lib/etc/libimagtimeui/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( dead_code, non_camel_case_types, diff --git a/lib/etc/libimagutil/src/lib.rs b/lib/etc/libimagutil/src/lib.rs index 19bc795a..08881dd8 100644 --- a/lib/etc/libimagutil/src/lib.rs +++ b/lib/etc/libimagutil/src/lib.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +#![forbid(unsafe_code)] + #![deny( dead_code, non_camel_case_types,