aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-01-07 00:26:21 +0100
committerpml68 <contact@pml68.dev>2025-01-07 00:26:21 +0100
commit98329311ad068a9e0e3c8d7c78b95e794671ac5e (patch)
treef56fb4996ef5fe6f880b0d3b51cff6aa1135358d /Cargo.toml
parentfeat: make Highlighter generic over any T that is text_editor::Catalog (diff)
downloadiced_custom_highlighter-98329311ad068a9e0e3c8d7c78b95e794671ac5e.tar.gz
chore: remove once_cell dep, disable default features for syntect
Diffstat (limited to '')
-rw-r--r--Cargo.toml26
1 files changed, 24 insertions, 2 deletions
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"