-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (74 loc) · 1.87 KB
/
Cargo.toml
File metadata and controls
89 lines (74 loc) · 1.87 KB
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
[package]
name = "rust_nes"
version = "0.2.3"
authors = ["xxrl <837951112@qq.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
build = "src/build.rs"
[dependencies]
clap = { version = "3.0.0-rc.7", features = ["derive"] }
log = { version = "0.4", features = ["std"] }
lazy_static = "1.4.0"
serde = { version = "1.0", features = ["derive"] }
serde_bytes = "0.11.5"
serde_json = "1.0.59"
ini = "1.3.0"
image = { version = "0.23.12", features = ["rgb"] }
num_enum = "0.5.7"
ciborium = "0.2.0"
# glfw and audio
portaudio = { version = "0.7.0", optional = true }
glfw = { version = "0.42.0", optional = true }
gl = { version = "0.14.0", optional = true }
# sdl2 and android
sdl2 = { version = "0.35.2", optional = true }
rand = "0.8.5"
anyhow = "1.0.68"
[build-dependencies]
dunce = "1.0"
[dependencies.web-sys]
version = "0.3.4"
features = [
'Document',
'Element',
'HtmlCanvasElement',
'HtmlParagraphElement',
'KeyboardEvent',
'WebGl2RenderingContext',
'WebGlBuffer',
'WebGlVertexArrayObject',
'WebGlProgram',
'WebGlShader',
'WebGlUniformLocation',
'WebGlTexture',
'Window',
'FocusEvent',
'File',
"FileReader",
]
optional = true
[profile.release]
lto = true
[lib]
name = "rust_nes"
crate-type = ["cdylib", "lib"]
[[bin]]
name = "emulator"
path = "src/main.rs"
# for web
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2.8", features = ["js"] }
js-sys = { version = "0.3.51" }
wasm-bindgen = { version = "0.2.74" }
wasm-rgame = { version = "0.0.1" }
wasm-logger = { version = "0.2.0" }
[target.'cfg(target_os = "android")'.dependencies]
android_logger = { version = "0.11.0" }
jni = { version = "0.19.0", default-features = false }
[features]
default = ["use_gl"]
use_gl = ["gl", "glfw"]
native-audio = ["portaudio"]
wasm = ["web-sys"]
wasm-miniapp = []
use_sdl2 = ["sdl2"]