-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
95 lines (80 loc) · 2.51 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
84
85
86
87
88
89
90
91
92
93
94
95
[package]
name = "rusty-aquarium"
version = "0.19.0"
authors = ["Olle Wreede <[email protected]>"]
edition = "2021"
default-run = "rusty-aquarium"
description = "Data visualization as a fish tank"
[dependencies]
futures = "0.3"
macroquad = "=0.4.13"
macroquad-particles = "0.2"
nanoserde = "0.1"
quad-net = "0.1"
# For systemdata bin
sysinfo = { version = "0.26", optional = true }
# For googlesheetsdata bin
google-sheets4 = { version = "=3.1", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
tokio = { version = "1.21", features = ["macros", "io-util", "rt", "rt-multi-thread", "fs"], optional = true }
clap = { version = "4.0.18", features = ["derive"], optional = true }
# For csvdata bin
csv = { version = "1.1", optional = true }
notify = { version = "5.0", optional = true }
# For bandata bin
chrono = { version = "0.4.22", optional = true }
[patch.crates-io]
# Needed since macroquad-particles isn't updated on crates.io
macroquad-particles = { git = "https://github.com/not-fl3/macroquad.git" }
macroquad = { git = "https://github.com/not-fl3/macroquad.git" }
[features]
build-bandata = ["chrono"]
build-csvdata = ["csv", "notify", "serde", "clap"]
build-googlesheetsdata = ["google-sheets4", "tokio", "clap"]
build-systemdata = ["sysinfo"]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
# Support reading OS root certs
rustls-native-certs = "0.6"
# Support reading OS root certs
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ureq]
version = "2.5"
features = ["native-certs"]
[profile.dev]
debug = 1 # less precise locations
# Doesn't work with android build
[profile.dev.package.'*']
debug = false # no debug symbols for deps
opt-level = 3
[package.metadata.scripts]
build-web = "bin/build-web"
serve-web = "bin/serve-web"
build-win = "bin/build-win"
build-mac = "bin/build-mac"
build-apk = "bin/build-apk"
build-linux = "bin/build-linux"
update-example = "bin/update-example"
[package.metadata.android]
assets = "assets"
version_code = 2
version_name = "Abstract Abacus"
[package.metadata.android.activity_attributes]
"android:screenOrientation" = "userLandscape"
[profile.release]
opt-level = 'z'
lto = true
panic = 'abort'
codegen-units = 1
strip = true
[[bin]]
name = "systemdata"
required-features = ["build-systemdata"]
[[bin]]
name = "googlesheetsdata"
required-features = ["build-googlesheetsdata"]
[[bin]]
name = "csvdata"
required-features = ["build-csvdata"]
[[bin]]
name = "bandata"
required-features = ["build-bandata"]