-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
64 lines (56 loc) · 1.82 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
[package]
name = "marshrutka"
version = "0.1.0"
authors = ["Marat Bukharov <[email protected]>"]
edition = "2021"
include = ["LICENSE-APACHE", "**/*.rs", "Cargo.toml"]
rust-version = "1.82"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"]
[dependencies]
anyhow = "1"
arrayvec = "0.7"
compare = "0.1"
eframe = { version = "0.29", default-features = false, features = [
"default_fonts", # Embed the default egui fonts.
"glow", # Use the glow rendering backend. Alternative: "wgpu".
"persistence", # Enable restoring app state when restarting the app.
] }
egui = "0.29"
egui_extras = { version = "0.29", features = ["http"] }
enum-map = "2.7"
log = "0.4"
num = "0.4"
num-integer = "0.1"
num-rational = "0.4"
num-traits = "0.2"
resvg = { version = "0.44", default-features = false }
simplecss = "0.2"
smallvec = "1"
strum = { version = "0.26", features = ["derive"] }
time = { version = "0.3", features = ["parsing", "serde", "formatting", "macros"] }
tiny-skia = { version = "0.11", default-features = false, features = ["std", "simd"] }
tl = "0.7"
# We need serde for app persistence:
serde = { version = "1", features = ["derive"] }
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.11"
# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
# to access the DOM (to hide the loading text)
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
# HACK: pin web-sys to <0.3.70 until a new `eframe` is released containing
# the following PR: https://github.com/emilk/egui/pull/4980
version = "0.3.70"
[profile.release]
opt-level = 3 # fast binary and wasm
lto = true
strip = "symbols"
panic = "abort"
codegen-units = 1
# Optimize all dependencies even in debug builds:
[profile.dev.package."*"]
opt-level = 2