-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
59 lines (50 loc) · 1.43 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
[package]
name = "whilers"
version = "0.1.0"
edition = "2021"
default-run = "main"
[[bin]]
name = "main"
path = "src/main.rs"
[[bin]]
name = "cli"
path = "src/cli.rs"
[dependencies]
anyhow = "1.0.70"
nom = "7.1.3"
once_cell = "1.17.1"
regex = "1.7.3"
syntect = { version = "5.0.0", default-features = false, features = [
"default-fancy",
"plist-load"
] }
egui = "0.25"
eframe = { version = "0.25", default-features = false, features = [
"accesskit", # Make egui comptaible 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.
] }
log = "0.4"
serde = { version = "1", features = ["derive"] }
indexmap = { version = "2.1.0", features = ["serde"] }
clap = {version = "4.5.20", features = ["derive"] }
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.10"
# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
web-sys = {version = "*", features = ["Url", "HtmlAnchorElement", "Blob"]}
[profile.release]
opt-level = 2 # fast and small wasm
[profile.dev.package."*"]
opt-level = 3
# (hopefully) the best of both worlds from debug and release
[profile.mid]
inherits = "dev"
debug = 1
opt-level = 3
incremental = true
[build-dependencies]
vergen-gitcl = { version = "1.0.2"}