-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
64 lines (52 loc) · 2.35 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 = "resume"
version = "0.1.0"
authors = ["Luna Ferraraccio <lferraraccio@outlook.com>"]
edition = "2021"
include = ["LICENSE-APACHE", "LICENSE-MIT", "**/*.rs", "Cargo.toml"]
rust-version = "1.76"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"]
[dependencies]
egui = "0.28.1"
eframe = { version = "0.28.0", 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.
] }
log = "0.4"
maze = {git = "https://github.com/NoodleSamaChan/maze.git", rev = "90b9fd7", default-features = false}
window_rs = {git = "https://github.com/NoodleSamaChan/window_rs.git", rev = "6068419"}
graphic = {git = "https://github.com/NoodleSamaChan/graphic.git", rev = "4cf1ea4", default-features = false}
getrandom = {version = "0.2.15", features = ["js"]}
pong = {git = "https://github.com/NoodleSamaChan/pong.git", rev = "fb97649", default-features = false}
snake = {git = "https://github.com/NoodleSamaChan/snake.git", rev = "6b84cdf", default-features = false}
game_of_life = {git = "https://github.com/NoodleSamaChan/rust_project.git", rev = "dd9a17c", default-features = false}
# You only need serde if you want app persistence:
serde = { version = "1", features = ["derive"] }
rand = "0.8.5"
web-time = "1.1.0"
egui_extras = "0.28.1"
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.10"
# 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]
version = "0.3.4"
[profile.release]
opt-level = 2 # fast and small wasm
# 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" }