generated from emilk/eframe_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
114 lines (98 loc) · 3.31 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
[workspace]
members = [
".",
"crates/html-egui-bindgen",
"crates/html-to-egui",
"examples/counter",
"examples/datetime",
"examples/login",
"examples/projects",
"examples/random",
"examples/todo",
]
[package]
name = "rdx"
version = "0.3.0"
authors = ["Doug Anderson <doug@peerpiper.io>"]
edition = "2021"
include = ["LICENSE-APACHE", "LICENSE-MIT", "**/*.rs", "Cargo.toml"]
rust-version = "1.78"
default-run = "rdx"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"]
# [[bin]]
# name = "force-build-wasm-bins"
# path = "build.rs"
[dependencies]
egui = "0.30"
eframe = { version = "0.30", default-features = false, features = [
# "accesskit", # Make egui compatible with screen readers. NOTE: adds a lot of dependencies.
"default_fonts", # Embed the default egui fonts.
"glow", # Use the glow rendering backend. Alternative: "wgpu".
"persistence", # Enable restoring app state when restarting the app.
"wayland", # To support Linux (and CI)
"x11",
] }
log = "0.4"
# You only need serde if you want app persistence:
serde = { version = "1", features = ["derive"] }
tracing = { version = "0.1", features = ["log"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
thiserror = "1.0"
wasm_component_layer = "0.1.18"
wasm_runtime_layer = "0.4"
rand = "0.8"
time = "0.3"
async-trait = "0.1.83"
anyhow = "1.0.93"
futures-lite = "2.5.0"
send_wrapper = "0.6"
html5ever = "0.27"
markup5ever_rcdom = "0.3.0"
markup5ever = "0.12.0"
html-to-egui = { path = "crates/html-to-egui" }
ahash = "0.8.11"
# For native builds:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.11"
rhai = { version = "1.19", features = ["sync", "serde"] }
wasmparser = "0.221"
# TODO: Feature gate this: Could choose wasmi or wasmtime.
wasmi_runtime_layer = "0.40.0"
tokio = { version = "1", features = ["full"] }
# wasmi vs wasmitme? wasmtime only if not os android and not wasm32
[target.'cfg(all(not(target_os = "android"), not(target_arch = "wasm32")))'.dependencies]
# wasmtime_runtime_layer = "26.0.0"
# For web builds:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
web-sys = "0.3.70" # to access the DOM (to hide the loading text)
getrandom = { version = "0.2", features = ["js"] } # For web builds
rhai = { version = "1.19", features = ["wasm-bindgen", "sync", "serde"] }
js_wasm_runtime_layer = "0.4.0"
anyhow = "1.0"
send_wrapper = { version = "0.6.0", features = ["futures"] }
web-time = "1.1.0"
[build-dependencies]
wasmparser = "0.221"
[dev-dependencies]
html-egui-bindgen = { path = "crates/html-egui-bindgen" }
test-log = "0.2.16"
[profile.release]
opt-level = 2 # fast and small wasm
# codegen-units = 1
# opt-level = "s"
# debug = false
# strip = true
# lto = true
# Optimize all dependencies even in debug builds:
[profile.dev.package."*"]
opt-level = 2
[patch.crates-io]
# If you want to use the bleeding edge version of egui and eframe:
# egui = { git = "https://github.com/emilk/egui", branch = "master" }
# eframe = { git = "https://github.com/emilk/egui", branch = "master" }
# If you fork https://github.com/emilk/egui you can test with:
# egui = { path = "../egui/crates/egui" }
# eframe = { path = "../egui/crates/eframe" }