diff --git a/Cargo.toml b/Cargo.toml index 5f3374b73..ea4186953 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,6 +36,9 @@ edition = "2021" name = "sqlparser" path = "src/lib.rs" +[lints.rust] +unsafe_code = "forbid" + [features] default = ["std", "recursive-protection"] std = [] diff --git a/derive/Cargo.toml b/derive/Cargo.toml index 9dfa5daf8..ac3d40589 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -35,6 +35,9 @@ edition = "2021" [lib] proc-macro = true +[lints.rust] +unsafe_code = "forbid" + [dependencies] syn = { version = "2.0", default-features = false, features = ["full", "printing", "parsing", "derive", "proc-macro", "clone-impls"] } proc-macro2 = "1.0"