portfolio/Cargo.toml

66 lines
2 KiB
TOML
Raw Normal View History

2024-03-18 18:21:35 -04:00
[package]
name = "portfolio"
version = "0.1.0"
authors = ["Isaac Mills <rooster0055@protonmail.com>"]
edition = "2021"
rust-version = "1.72"
[dependencies]
2024-04-19 11:22:21 -04:00
cosmic-jotdown = { git = "https://git.nations.lol/fnmain/cosmic-jotdown" }
2024-04-19 11:20:13 -04:00
jotdown = { git = "https://git.nations.lol/fnmain/jotdown" }
eframe = { version = "0.27.2", default-features = false, features = [
2024-03-18 18:21:35 -04:00
"accesskit", # Make egui comptaible with screen readers. NOTE: adds a lot of dependencies.
# "default_fonts",
"wgpu", # Use the glow rendering backend. Alternative: "wgpu".
"x11",
"wayland",
] }
2024-03-18 18:34:10 -04:00
egui-glyphon = { git = "https://git.nations.lol/fnmain/egui-glyphon" }
2024-04-19 11:20:13 -04:00
egui_extras = { version = "0.27.2", features = ["image", "http", "file"] }
2024-03-18 18:21:35 -04:00
encase = { version = "0.7.0", features = ["glam"] }
glam = "0.25.0"
2024-04-19 11:20:13 -04:00
image = { version = "0.24.9", features = ["jpeg", "png"], defaut-features = false }
2024-03-18 18:21:35 -04:00
keyframe = { version = "1.1.1", default-features = false }
log = "0.4"
2024-04-19 11:20:13 -04:00
rangemap = "1.5.1"
2024-03-18 18:21:35 -04:00
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
2024-04-19 11:20:13 -04:00
env_logger = "0.11"
2024-03-18 18:21:35 -04:00
# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wgpu = { version = "0.19.3", features = ["webgpu", "webgl"] }
wasm-bindgen-futures = "0.4"
2024-03-19 21:40:26 -04:00
wasm-bindgen = "0.2.92"
web-sys = { version = "0.3.69", features = ["Window", "History", "PopStateEvent"] }
arc-swap = "1.7.0"
2024-03-18 18:21:35 -04:00
[profile.release]
opt-level = 2 # fast and small wasm
lto = true
panic = "abort"
strip = true
# Optimize all dependencies even in debug builds:
[profile.dev.package."*"]
opt-level = 2
[patch.crates-io]
[build-dependencies]
databake = "0.1.7"
glob = "0.3.1"
2024-03-18 18:40:31 -04:00
jotdown = { git = "https://git.nations.lol/fnmain/jotdown", features = ["parser"] }
2024-03-18 18:21:35 -04:00
# 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" }