-
Notifications
You must be signed in to change notification settings - Fork 72
/
Cargo.toml
83 lines (73 loc) · 2 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
[package]
name = "stylua"
version = "2.0.1"
authors = ["JohnnyMorganz <[email protected]>"]
description = "A code formatter for Lua"
license = "MPL-2.0"
repository = "https://github.com/johnnymorganz/stylua"
readme = "README.md"
categories = ["command-line-utilities", "development-tools"]
keywords = ["cli", "utility", "lua", "lua51", "formatter"]
edition = "2018"
exclude = ["stylua-vscode/**", "tests/**"]
[lib]
name = "stylua_lib"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
bench = false
[[bin]]
name = "stylua"
path = "src/cli/main.rs"
bench = false
[features]
default = ["editorconfig", "wasm-bindgen"]
serialize = []
fromstr = ["strum"]
luau = ["full_moon/roblox"]
lua52 = ["full_moon/lua52"]
lua53 = ["lua52", "full_moon/lua53"]
lua54 = ["lua53", "full_moon/lua54"]
luajit = ["full_moon/luajit"]
editorconfig = ["ec4rs"]
[dependencies]
anyhow = "1.0.75"
cfg-if = "1.0.0"
clap = { version = "3.1.6", features = ["derive"] }
console = "0.15.7"
crossbeam-channel = "0.5.8"
ec4rs = { version = "1.0.2", optional = true }
env_logger = { version = "0.10.0", default-features = false }
full_moon = "1.1.2"
globset = "0.4.13"
ignore = "0.4.20"
lazy_static = "1.4.0"
log = "0.4.20"
num_cpus = "1.16.0"
regex = "1.10.2"
serde = "1.0.188"
serde_json = "1.0.108"
similar = { version = "2.3.0", features = ["text", "inline", "serde"] }
strum = { version = "0.25.0", features = ["derive"], optional = true }
thiserror = "1.0.49"
threadpool = "1.8.1"
toml = "0.8.1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2.81", optional = true }
# full-moon should be compiled to release optimisations in debug mode due to stack overflows
# https://github.com/Kampfkarren/full-moon/issues/140
[profile.dev.package.full_moon]
opt-level = 3
[dev-dependencies]
criterion = "0.4.0"
insta = { version = "1.34.0", features = ["glob"] }
assert_cmd = "2.0.12"
assert_fs = "1.0.13"
[[bench]]
name = "date"
harness = false
[[bench]]
name = "nested_tables"
harness = false
[[bench]]
name = "docgen"
harness = false