-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
67 lines (54 loc) · 1.85 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
[package]
name = "vds"
version = "0.0.1"
authors = ["Frederic Laing <frederic.laing.development@gmail.com>"]
edition = "2021"
[features]
default = ["wgpu", "persistence"]
persistence = ["eframe/persistence", "egui/persistence", "serde"]
serde = ["dep:serde", "egui/serde"]
wgpu = ["eframe/wgpu", "bytemuck"]
[dependencies]
chrono = { version = "0.4.26", default-features = false, features = [
"js-sys",
"wasmbind",
] }
egui = { version = "0.22.0", features = [
"extra_debug_asserts",
] }
eframe = { version = "0.22.0", default-features = false, features = [
"accesskit", # Make egui comptaible with screen readers. NOTE: adds a lot of dependencies.
"default_fonts", # Embed the default egui fonts.
"wgpu", # Use the glow rendering backend. Alternative: "wgpu".
"persistence", # Enable restoring app state when restarting the app.
] }
log = "0.4.19"
bytemuck = { version = "1.13.1", optional = true }
anyhow = "1.0.72"
cgmath = "0.18.0"
half = "2.3.1"
rfd = "0.11.4"
regex = "1.9.1"
egui_dock = "0.6"
type-map = "0.5.0"
uuid = { version = "1.4.1",features = [
"v4", # Lets you generate random UUIDs
"fast-rng", # Use a faster (but still sufficiently random) RNG
]}
# feature "persistence":
serde = { version = "1.0.171", optional = true, features = ["derive"] }
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.10.0"
# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.87"
wasm-bindgen-futures = "0.4.37"
web-sys = { version = "0.3.64", features = ["Window", "Url", "File", "Blob", "HtmlAnchorElement", "BlobPropertyBag", "FilePropertyBag"] }
js-sys = "0.3.64"
getrandom = { version = "0.2", features = ["js"] }
[profile.release]
opt-level = 2 # fast and small wasm
# Optimize all dependencies even in debug builds:
[profile.dev.package."*"]
opt-level = 2