/
Cargo.toml
146 lines (129 loc) · 4.33 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[package]
name = "dose-response"
version = "2.0.0-dev"
description = "Roguelike game where you play an addict"
authors = ["Tomas Sedovic <tomas@sedovic.cz>"]
homepage = "https://tryjumping.com/dose-response-roguelike/"
repository = "https://github.com/tryjumping/dose-response"
edition = "2021"
license = "AGPL-3.0-or-later"
build = "build.rs"
default-run = "dose-response"
exclude = ["bin/*", "scripts/*", "replays/*", "screenshots/*", "ci/*",
"web-src/*", "*.js", "*.css", "*.html",
"notes.org", "SAVEDGAME.sav", "out-dir-path", "dose-response.log",
"videos/*", "*.mp4", "third-party-licenses.html"]
[[bin]]
name = "dose-response"
path = "src/main.rs"
[[bench]]
name = "pathfinding"
harness = false
[dependencies]
bincode = "1.3" # For serialising the game save state into a binary format
bitflags = "1.2"
clap = { version = "2.33.3", optional = true }
chrono = { version = "0.4.19", optional = true }
cstr = "0.2.9"
#egui = { git = "https://github.com/emilk/emigui.git" }
#egui = { git = "https://github.com/tomassedovic/emigui.git" }
#egui = { path = "../../3pc/src/github.com/emilk/emigui/egui" }
# NOTE: by disabling default features, we're excluding the bundled font
egui = { version = "0.15", default-features = false, features = ["single_threaded"] }
gilrs = "0.10.2"
gl = { version = "0.14", optional = true }
glutin = { version = "0.27", optional = true }
image = { version = "0.23.14", optional = true }
line_drawing = "0.8"
log = "0.4.14"
log-panics = { version = "2.0", features = ["with-backtrace"], optional = true }
num-rational = { version = "0.4.0", default-features = false, features = ["serde"] }
oorandom = { version = "11.1.3" }
rodio = { version = "0.17.3", features = ["vorbis"], default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
simplelog = { version = "0.12.0", default-features = false, features = [], optional = true }
time = { version = "0.3.14" }
toml_edit = "0.2.1"
# Update it only when glutin use a new version of winit
winit = "0.25"
webbrowser = "0.5.5"
[build-dependencies]
rusttype = "0.8"
image = "0.23.14"
[dev-dependencies]
bencher = "0.1"
# Only compile winres on Windows targets.
[target.'cfg(windows)'.build-dependencies]
winres = "0.1"
[features]
# NOTE: Add the `mobile-ui` feature to switch to the mobile UI size
# default = ["dev", "mobile-ui"]
default = ["dev"]
# NOTE: Add the `recording` feature to test/record the trailer mode
prod = ["desktop", "glutin-backend"]
dev = ["desktop", "glutin-backend", "cheating", "replay", "stats", "verifications"]
test = ["dev", "prod", "all-backends"]
all-backends = ["glutin-backend"]
desktop = ["cli", "fullscreen", "chrono"]
recording = ["prod", "replay"]
# TODO: add a "trailer" feature for the gameplay (not UI) changes under "recording"?
# So you can record a normal game / replay too.
mobile-ui = []
cheating = []
cli = ["clap", "simplelog", "log-panics"]
fullscreen = []
glutin-backend = ["glutin", "gl", "image"]
missed-frames = []
replay = ["chrono"]
stats = []
verifications = []
linux-extra-features = []
macos-extra-features = []
windows-extra-features = []
[profile.release]
codegen-units = 1
lto = true
# We only use debug info for profiling, but not otherwise
#debug = true
[lints.rust]
overflowing_literals = "deny"
unsafe_code = "deny"
rust_2018_idioms = "deny"
rust_2018_compatibility = "deny"
unused_extern_crates = "deny"
nonstandard_style = "deny"
future_incompatible = "deny"
missing_copy_implementations = "warn"
[lints.clippy]
explicit_iter_loop = "allow"
identity_op = "allow"
wildcard_imports = "allow"
match_bool = "allow"
single_match_else = "allow"
manual_slice_size_calculation = "allow"
match_wildcard_for_single_variants = "allow"
match_same_arms = "allow"
default_trait_access = "allow"
ptr_as_ptr = "allow"
float_cmp = "allow"
from_iter_instead_of_collect = "allow"
collapsible_else_if = "allow"
bool_assert_comparison = "allow"
cast_lossless = "deny"
redundant_closure_for_method_calls = "deny"
cloned_instead_of_copied = "deny"
unnested_or_patterns = "deny"
if_not_else = "deny"
map_unwrap_or = "deny"
unreadable_literal = "deny"
unseparated_literal_suffix = "deny"
doc_markdown = "deny"
# These lints guard against common runtime panic situations:
expect_used = "deny"
unwrap_used = "deny"
ok_expect = "deny"
panic = "deny"
match_on_vec_items = "deny"
manual_strip = "deny"
await_holding_refcell_ref = "deny"