-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
102 lines (95 loc) · 2.84 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[package]
name = "typope"
edition = "2021"
description = "Pedantic source code checker for orthotypography mistakes and other typographical errors"
version = "0.3.1"
license = "MIT OR Apache-2.0"
readme = "README.md"
rust-version = "1.74.0"
categories = ["command-line-utilities", "development-tools", "text-processing"]
keywords = ["typography", "development", "spelling", "pedantic"]
include = ["README.md", "CHANGELOG.md", "/src/*", "/LICENSE*"]
repository = "https://github.com/ronnychevalier/typope"
[features]
default = ["lang-all"]
lang-all = [
"lang-c",
"lang-cpp",
"lang-go",
"lang-json",
"lang-markdown",
"lang-python",
"lang-rust",
"lang-toml",
"lang-yaml",
"lang-kotlin",
]
lang-c = ["dep:tree-sitter-c"]
lang-cpp = ["dep:tree-sitter-cpp"]
lang-go = ["dep:tree-sitter-go"]
lang-json = ["dep:tree-sitter-json"]
lang-markdown = ["dep:tree-sitter-md", "dep:btree-range-map"]
lang-python = ["dep:tree-sitter-python"]
lang-rust = ["dep:tree-sitter-rust"]
lang-toml = ["dep:tree-sitter-toml-ng"]
lang-yaml = ["dep:tree-sitter-yaml"]
lang-kotlin = ["dep:tree-sitter-kotlin"]
[dependencies]
anyhow = "1.0.86"
btree-range-map = { version = "0.7.2", optional = true }
clap = { version = "4.5.9", features = ["derive"] }
globset = "0.4.15"
ignore = "0.4.22"
miette = { version = "7.2.0", features = ["fancy"] }
rayon = "1.10.0"
regex = "1.10.5"
serde = { version = "1.0.204", features = ["derive"] }
serde_regex = "1.1.0"
tempfile = "3.10.1"
thiserror = "1.0.61"
toml = "0.8.14"
tree-sitter = "0.22.6"
tree-sitter-c = { version = "0.21.4", optional = true }
tree-sitter-cpp = { version = "0.22.2", optional = true }
tree-sitter-go = { version = "0.21.0", optional = true }
tree-sitter-json = { version = "0.21.0", optional = true }
tree-sitter-kotlin = { version = "0.3.7", optional = true }
tree-sitter-md = { version = "0.2.3", optional = true }
tree-sitter-python = { version = "0.21.0", optional = true }
tree-sitter-rust = { version = "0.21.2", optional = true }
tree-sitter-toml-ng = { version = "0.6.0", optional = true }
tree-sitter-yaml = { version = "0.6.1", optional = true }
winnow = "0.6.13"
[lints.rust]
trivial_numeric_casts = "warn"
improper_ctypes = "warn"
improper_ctypes_definitions = "warn"
non_ascii_idents = "warn"
rust_2018_idioms = "warn"
rust_2024_compatibility = "warn"
single_use_lifetimes = "warn"
[lints.clippy]
unwrap_used = "warn"
expect_used = "warn"
indexing_slicing = "warn"
panic_in_result_fn = "warn"
dbg_macro = "warn"
print_stderr = "warn"
print_stdout = "warn"
panic = "warn"
todo = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unimplemented = "warn"
cast_lossless = "warn"
trailing_empty_array = "warn"
as_ptr_cast_mut = "warn"
lint_groups_priority = "allow"
[profile.dev]
opt-level = 1
[profile.release]
lto = true
strip = "symbols"
panic = "abort"
[dev-dependencies]
tempfile = "3.10.1"