From 98329311ad068a9e0e3c8d7c78b95e794671ac5e Mon Sep 17 00:00:00 2001 From: pml68 Date: Tue, 7 Jan 2025 00:26:21 +0100 Subject: chore: remove once_cell dep, disable default features for syntect --- Cargo.toml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index ff99632..90adfe1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,31 @@ rust-version = "1.80" [dependencies] iced_widget = "0.13.4" -once_cell = "1.0" -syntect = "5.1" +syntect = { version = "5.1", default-features = false, features = ["default-syntaxes", "regex-onig"] } [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs"] all-features = true + +[lints.rust] +missing_debug_implementations = "deny" +unsafe_code = "deny" +unused_results = "deny" + +[lints.clippy] +type-complexity = "allow" +semicolon_if_nothing_returned = "deny" +trivially-copy-pass-by-ref = "deny" +default_trait_access = "deny" +match-wildcard-for-single-variants = "deny" +redundant-closure-for-method-calls = "deny" +filter_map_next = "deny" +manual_let_else = "deny" +unused_async = "deny" +from_over_into = "deny" +needless_borrow = "deny" +new_without_default = "deny" +useless_conversion = "deny" + +[lints.rustdoc] +broken_intra_doc_links = "forbid" -- cgit v1.2.3