-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
108 lines (94 loc) · 2.46 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
[package]
name = "blocks_n_stuff"
version = "0.1.0"
description = "A Minecraft-inspired game to showcase my graphics programming skills."
edition.workspace = true
authors.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
# Optimize dependencies, but not the finaly bianry to avoid impacting compile times too much.
[profile.dev.package.'*']
opt-level = 3
[profile.dev]
opt-level = 1
debug = false
panic = "abort"
[profile.dev-debug]
inherits = "dev"
debug = true
opt-level = 0
[profile.release]
panic = "abort"
strip = true
lto = true
codegen-units = 8
[lints.clippy]
"print_stdout" = "warn"
"print_stderr" = "warn"
[workspace.package]
edition = "2021"
authors = ["Nils Mathieu <[email protected]>"]
repository = "https://github.com/nils-mathieu/blocks_n_stuff"
license = "MIT"
publish = false
[workspace]
members = [
"crates/core",
"crates/render",
"crates/image",
"crates/rng",
"crates/rng/derive",
"crates/worldgen-core",
"crates/worldgen-std",
"crates/worldgen-structure",
"crates/worldgen-structure/macros",
"crates/worldgen-structure/types",
"crates/log",
"crates/app",
]
[features]
default = []
embedded-assets = ["bns-core/embedded-textures"]
[dependencies]
bns-core = { path = "crates/core" }
bns-render = { path = "crates/render" }
bns-image = { path = "crates/image" }
bns-rng = { path = "crates/rng" }
bns-worldgen-core = { path = "crates/worldgen-core" }
bns-worldgen-std = { path = "crates/worldgen-std" }
bns-worldgen-structure = { path = "crates/worldgen-structure" }
bns-log = { path = "crates/log" }
bns-app = { path = "crates/app" }
glam = "0.24"
rustc-hash = "1"
hashbrown = "0.14"
bitflags = "2"
smallvec = "1"
quanta = "0.12"
bytemuck = "1"
profiling = "1"
parking_lot = "0.12"
serde = { version = "1", features = ["derive"] }
ron = "0.8"
rodio = { version = "0.17", default-features = false, features = ["vorbis"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
pollster = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3", features = [
"console",
"Window",
"Blob",
"Response",
"Url",
"Element",
"HtmlAnchorElement",
"HtmlElement",
] }
wasm-bindgen-futures = "0.4"
rodio = { version = "0.17", default-features = false, features = [
"wasm-bindgen",
] }
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.52"
features = ["Win32_Foundation", "Win32_UI_WindowsAndMessaging"]