-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
154 lines (116 loc) · 3.97 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
147
148
149
150
151
152
153
154
[workspace]
members = ["core", "jit", "android", "native", "wasm", "libretro"]
resolver = "2"
[workspace.package]
version = "0.3.1"
edition = "2021"
authors = ["Rodrigo Batista de Moraes <[email protected]>"]
repository = "https://github.com/Rodrigodd/gameroy"
license = "MIT OR Apache-2.0"
[package]
name = "gameroy"
build = "build.rs"
description = "A high precision, high performance Game Boy emulator and debugger."
version.workspace = true
edition.workspace = true
authors.workspace = true
repository.workspace = true
license.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "gameroy_lib"
crate-type = ["cdylib", "rlib"]
path = "src/lib.rs"
[features]
# Staticly include files in the binary
static = []
# Enable multithreading. Not support in wasm for example.
threads = []
statistics = ["gameroy-jit/statistics"]
emit_debug_info = ["gameroy-jit/emit_debug_info"]
default = ["rfd", "audio-engine"]
[build-dependencies]
resvg = "0.35.0"
[dev-dependencies]
flexi_logger = "0.22.3"
[dependencies]
gameroy-core = { path = "core" }
# giui = { path = "../giui" }
giui = { git = "https://github.com/Rodrigodd/giui" }
# sprite-render = { path = "../sprite-render-rs", features=["opengl", "webgl"] }
sprite-render = { git = "https://github.com/Rodrigodd/sprite-render-rs", features = [
"opengl",
"webgl",
] }
# audio-engine = { path = "../audio-engine", optional = true }
audio-engine = { version = "0.4.2", optional = true }
rfd = { version = "0.9.1", optional = true, features = ["file-handle-inner"] }
serde = { version = "1.0.210", features = ["derive"] }
ron = "0.8.1"
winit = { version = "0.28.7", features = ["serde"] }
log = "0.4.22"
image = { version = "0.25.4", default-features = false, features = ["png"] }
parking_lot = "0.12.3"
once_cell = "1.20.2"
instant = { version = "0.1.12", features = ["wasm-bindgen"] }
flume = { version = "0.11.1", default-features = false }
cfg-if = "1.0.0"
toml = "0.8.19"
flate2 = "1.0.34"
ureq = { version = "2.10.1", default-features = false }
[target.'cfg(target_arch = "x86_64")'.dependencies]
gameroy-jit = { path = "jit" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.95"
js-sys = "0.3.72"
wasm-bindgen-futures = "0.4"
base64 = "0.22.1"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.72"
features = ['Document', 'Element', 'Storage', 'Window', 'File', 'FileReader']
[target.'cfg(target_os = "android")'.dependencies]
ndk-glue = { version = "0.7.0", features = ["logger"] }
ndk-context = { version = "0.1.1" }
jni = "0.19.0"
urlencoding = "2.1.3"
[patch.crates-io]
# waiting for https://github.com/sebcrozet/instant/pull/46
instant = { git = "https://github.com/Rodrigodd/instant.git" }
# contains hacky workaround for https://github.com/rust-windowing/winit/issues/2299
# and this volume buttons fix: https://github.com/rust-windowing/winit/pull/1919
# winit = { git = "https://github.com/Rodrigodd/winit.git", branch = "v0.27.5-gameroy" }
# fork contains a android backend
rfd = { git = "https://github.com/Rodrigodd/rfd.git", branch = "android", optional = true }
# hard code oboe's performance mode to low latency
cpal = { git = "https://github.com/Rodrigodd/cpal.git", branch = "oboe-low-latency" }
# contains this fix: https://github.com/Nercury/android_logger-rs/pull/62
android_logger = { git = "https://github.com/TiggeZaki/android_logger-rs", branch = "patch-1" }
[profile.dev]
opt-level = 1
[profile.dev.package.audio-engine]
opt-level = 3
# Make image decoding be about 10x faster.
[profile.dev.package.image]
opt-level = 3
[profile.dev.package.png]
opt-level = 3
[profile.dev.package.miniz_oxide]
opt-level = 3
[profile.dev.package.flate2]
opt-level = 3
[profile.release]
debug = true
[profile.test]
opt-level = 3
# overflow-checks = false
[profile.fast]
inherits = "release"
debug = false
strip = true
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
[profile.debugging]
inherits = "dev"
opt-level = 0