-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
58 lines (46 loc) · 1.49 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
[package]
name = "editorconfiger"
version = "0.4.13"
description = "Plain tool to validate and compare .editorconfig files"
authors = ["egoroff <egoroff@gmail.com>"]
keywords = ["editorconfig"]
repository = "https://github.com/aegoroff/editorconfiger"
edition = "2021"
license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies] # <-- We added this and everything after!
lalrpop = "=0.22.1"
[dependencies]
lalrpop-util = { version = "=0.22.1", features = ["lexer", "unicode"] }
jwalk = "=0.8.1"
aho-corasick = "=1.1.3"
nom = "=8.0.0"
num_cpus = "=1.16.0"
ansi_term = { version = "=0.12.1", optional = true }
prettytable-rs = { version = "=0.10.0", optional = true }
clap = { version = "=4.5.31", features = ["std", "color", "suggestions", "cargo"], optional = true }
clap_complete = { version = "=4.5.46", optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
mimalloc = "=0.1.43"
[dev-dependencies]
table-test = "=0.2.1"
rstest = "=0.24.0"
[features]
build-binary = ["clap", "clap_complete", "ansi_term", "prettytable-rs"]
[[bin]]
name = "editorconfiger"
required-features = ["build-binary"]
[profile.release]
lto = true
strip = true
panic = 'abort'
[package.metadata.deb]
assets = [
["target/release/editorconfiger", "usr/bin/", "755"],
]
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/editorconfiger", dest = "/usr/bin/editorconfiger", mode = "0755" },
]
[lints.rust]
unsafe_code = "forbid"