-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
105 lines (95 loc) · 2.44 KB
/
Cargo.toml
File metadata and controls
105 lines (95 loc) · 2.44 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[package]
name = "iron-wolf"
version = "0.9.0"
edition = "2024"
authors = ["Michael Bohn <spaceodyssey@gmx.de>"]
description = "Iron-Wolf a Wolfenstein 3D source port"
license = "GPL-3.0"
repository = "https://github.com/Ragnaroek/iron-wolf"
[features]
sdl = [
"vga-emu/sdl2",
"opl-emu/sdl",
"sdl2",
"tokio/rt-multi-thread"
]
web = [
"vga-emu/web",
"opl-emu/web",
"tokio/rt",
"dep:serde-wasm-bindgen",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
"dep:console_error_panic_hook",
"dep:web-sys",
"dep:js-sys",
]
test = [
"vga-emu/test",
"opl-emu/sdl",
"sdl2",
"tokio/rt-multi-thread",
"tokio/test-util",
"tokio/macros",
]
[lib]
name = "iw"
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "iw"
path = "src/main.rs"
[dependencies]
serde = { version = "1.0.228", features = ["derive"] }
cfg-if = "1.0.4"
toml = "1.0.3+spec-1.1.0"
vga-emu = "0.8.5" # { path = "../vga-emu/" }
opl-emu = "0.4.2" # { path = "../opl-emu/" }
web-time = "1.1.0" # std::time for web that needs an crate to be compatible :/
tokio = { version = "1.49.0", default-features = false }
# feature sdl
sdl2 = { version = "0.38.0", optional = true, default-features = false, features = [
"mixer",
] }
libc = "0.2.182" # temp override, until sdl3/mixed can be used which also will resolve the dependency conflict around libc
# feature web
wasm-bindgen = { version = "0.2.114", optional = true, features = [
"serde-serialize",
] }
serde-wasm-bindgen = { version = "0.6.5", optional = true }
wasm-bindgen-futures = { version = "0.4.64", optional = true }
console_error_panic_hook = { version = "0.1.7", optional = true }
js-sys = { version = "0.3.91", optional = true }
web-sys = { version = "0.3.91", optional = true, features = [
"HtmlInputElement",
"File",
"FileList",
"FileReader",
"Response",
"AudioContextOptions",
"AudioBuffer",
"AudioParam",
"AudioBufferSourceNode",
"IdbFactory",
"IdbDatabase",
"IdbOpenDbRequest",
"IdbTransaction",
"IdbTransactionMode",
"IdbObjectStore",
"DomStringList",
] }
wasm-timer = { version = "0.2.5", optional = true }
[profile.bench]
debug = true
[profile.dev]
debug = true
opt-level = 3 # without 3, iw crashes with a stack overflow...
split-debuginfo = "packed"
[profile.release]
opt-level = "z"
debug = false
strip = true
lto = true
codegen-units = 1
panic = "abort"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false