forked from BeeStation/rust-g
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
64 lines (56 loc) · 2.15 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
[package]
name = "rust-g"
edition = "2018"
version = "0.4.7"
authors = ["Bjorn Neergaard <[email protected]>"]
repository = "https://github.com/tgstation/rust-g"
license-file = "LICENSE"
description = "Offloaded task library for the /tg/ Space Station 13 codebase"
[lib]
crate-type = ["cdylib"]
[profile.release]
opt-level = 3
codegen-units = 1
lto = true
[dependencies]
thiserror = "1.0"
flume = { version = "0.9", optional = true }
chrono = { version = "0.4", optional = true }
md-5 = { version = "0.9", optional = true }
twox-hash = { version = "1.6.0", optional = true }
const-random = { version = "0.1.13", optional = true }
sha-1 = { version = "0.9", optional = true }
sha2 = { version = "0.9", optional = true }
hex = { version = "0.4", optional = true }
percent-encoding = { version = "2.1", optional = true }
url-dep = { version = "2.1", package = "url", optional = true }
png = { version = "0.16", optional = true }
image = { version = "0.23.10", optional = true }
git2 = { version = "0.13", optional = true, default-features = false }
noise = { version = "0.6", optional = true}
reqwest = { version = "0.10", optional = true, default-features = false, features = ["blocking", "rustls-tls"] }
serde = { version = "1.0", optional = true, features = ["derive"] }
serde_json = { version = "1.0", optional = true }
lazy_static = { version = "1.4", optional = true }
once_cell = { version = "1.4", optional = true }
mysql = { version = "20.0", optional = true }
dashmap = { version = "3.11", optional = true }
zip = { version = "0.5.8", optional = true }
rand = {version = "0.7", optional = true}
[features]
default = ["cellularnoise", "dmi", "file", "git", "http", "json", "log", "noise", "sql"]
# default features
cellularnoise = ["rand"]
dmi = ["png", "image"]
file = []
git = ["git2", "chrono"]
http = ["reqwest", "serde", "serde_json", "once_cell", "jobs"]
json = ["serde", "serde_json"]
log = ["chrono"]
sql = ["mysql", "serde", "serde_json", "once_cell", "dashmap", "jobs"]
# non-default features
hash = ["md-5", "sha-1", "sha2", "hex", "twox-hash", "const-random"]
url = ["url-dep", "percent-encoding"]
unzip = ["zip", "jobs"]
# internal feature-like things
jobs = ["flume"]