add unsafe and clippy warnings to Cargo.toml

This commit is contained in:
Miraty 2024-05-05 02:01:37 +02:00
parent 660f7edb75
commit f3fbee81c0

View file

@ -3,6 +3,17 @@ name = "sn-client"
version = "0.1.0"
edition = "2021"
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
std_instead_of_core = "warn"
str_to_string = "warn"
string_to_string = "warn"
semicolon_if_nothing_returned = "warn"
wildcard_imports = "warn"
inefficient_to_string = "warn"
[dependencies]
i18n-embed-fl = { version = "0.8.0", default-features = false }
rust-embed = { version = "8", default-features = false }