-
Notifications
You must be signed in to change notification settings - Fork 12
/
Cargo.toml
81 lines (63 loc) · 1.77 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
[package]
name = "anime-game-core"
version = "1.25.1"
authors = ["Nikita Podvirnyi <[email protected]>"]
license = "GPL-3.0"
readme = "README.md"
repository = "https://github.com/an-anime-team/anime-game-core"
edition = "2021"
[dependencies]
minreq = { version = "2.12", features = ["json-using-serde", "https-rustls-probe", "proxy"] }
dns-lookup = "2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
fs_extra = "1.3.0"
cached = { version = "0.53", features = ["proc_macro"] }
anyhow = { version = "1.0", features = ["backtrace"] }
thiserror = "1.0"
tracing = "0.1"
lazy_static = "1.5.0"
# Install feature
sysinfo = { version = "0.32", optional = true }
zip = { version = "2.1", optional = true }
tar = { version = "0.4", optional = true }
# sevenz-rust = { version = "0.2", optional = true }
# Compression types for tar
xz = { version = "0.1", optional = true }
bzip2 = { version = "0.4", optional = true }
flate2 = { version = "1.0", optional = true } # TODO: check https://crates.io/crates/zune-inflate
# Linux patch feature
md-5 = { version = "0.10", features = ["asm"], optional = true }
# External feature
kinda-virtual-fs = { version = "0.1.1", optional = true }
# Amazing wuwa API
brotli-decompressor = { version = "4.0", optional = true }
[features]
genshin = []
star-rail = []
zzz = []
honkai = []
pgr = []
wuwa = ["dep:flate2", "dep:brotli-decompressor"]
install = [
# Only genshin need it so perhaps I should
# somehow disable this feature for other games?
"external",
"dep:sysinfo",
"dep:zip",
"dep:tar",
"dep:xz",
"dep:bzip2",
"dep:flate2",
"dep:md-5"
]
external = ["dep:kinda-virtual-fs"]
patches = []
patch-jadeite = []
patch-mfc140 = []
patch-vcrun2015 = []
all = [
"install",
"external",
"patches"
]