forked from an-anime-team/anime-game-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
76 lines (59 loc) · 1.63 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
[package]
name = "anime-game-core"
version = "1.17.4"
authors = ["Nikita Podvirnyy <krypt0nn@vk.com>"]
license = "GPL-3.0"
readme = "README.md"
repository = "https://github.com/an-anime-team/anime-game-core"
edition = "2021"
[dependencies]
minreq = { version = "2.11.0", features = ["json-using-serde", "https-rustls-probe", "proxy"] }
dns-lookup = "2.0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
fs_extra = "1.3.0"
cached = { version = "0.46", features = ["proc_macro"] }
anyhow = { version = "1.0", features = ["backtrace"] }
thiserror = "1.0"
tracing = "0.1"
lazy_static = "1.4.0"
# Install feature
sysinfo = { version = "0.30", optional = true }
zip = { version = "0.6", 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 }
[features]
genshin = []
star-rail = []
honkai = []
pgr = []
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-mfplat = []
patch-mfc140 = []
all = [
"install",
"external",
"patches"
]