Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
96 lines (83 loc) · 2.35 KB
/
Copy pathCargo.toml
File metadata and controls
96 lines (83 loc) · 2.35 KB
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
[package]
name = "darklua"
version = "0.19.0"
authors = ["jeparlefrancais <jeparlefrancais21@gmail.com>"]
edition = "2018"
readme = "README.md"
description = "Transform Lua scripts"
repository = "https://github.com/seaofvoices/darklua"
homepage = "https://darklua.com"
license = "MIT"
keywords = ["lua", "obsfucation", "minify"]
exclude = ["site"]
[badges]
github = { repository = "seaofvoices/darklua" }
[lib]
name = "darklua_core"
path = "src/lib.rs"
[[bin]]
name = "darklua"
path = "src/bin.rs"
[features]
tracing = ["dep:tracing"]
[dependencies]
anstyle = "1.0.14"
base64 = "0.22.1"
bstr = "1.12.1"
clap = { version = "4.6.1", features = ["derive"] }
durationfmt = "0.1.1"
elsa = "1.11.2"
env_logger = "0.11.10"
flate2 = "1.1.9"
full_moon = { version = "2.2.0", features = ["roblox"] }
indexmap = "2.14.0"
json5 = "1.3.1"
log = "0.4.29"
num-traits = "0.2.19"
pathdiff = "0.2.3"
petgraph = "0.8.3"
regex = "1.12.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.149"
serde_yaml = "0.9.33"
toml = "1.1.2"
tracing = { version = "0.1", optional = true }
wax = "0.7.0"
xxhash-rust = { version = "0.8.15", features = ["xxh3"] }
zstd = "0.13.3"
[dev-dependencies]
assert_cmd = "2.2.1"
criterion = { version = "0.8.2", features = ["html_reports"] }
include_dir = "0.7.4"
insta = { version = "1.47.2", features = ["json", "filters"] }
paste = "1.0.15"
pretty_assertions = "1.4.1"
rand = "0.10.1"
rand_distr = "0.6.0"
serde_bytes = "0.11.19"
tempfile = "3.27.0"
tracing-subscriber = "0.3.23"
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-time = "1.1.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ctrlc = { version = "3.5.2", features = ["termination"] }
notify = "8.2.0"
notify-debouncer-full = "0.7.0"
# This is needed because when runnin `cargo test`, the library and its
# dependencies are build with the `dev` profile. To make sure full_moon
# does not stack overflow when parsing complex code, it needs to be compiled
# at optimization level 3 (which is what release mode uses)
# Info about profiles can be found there:
# https://doc.rust-lang.org/cargo/reference/profiles.html
[profile.dev.package.full_moon]
opt-level = 3
[[bench]]
name = "process_bench"
harness = false
[[bench]]
name = "parse_bench"
harness = false
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)'] }
[lints.clippy]
uninlined_format_args = "allow"