mirror of https://github.com/Leinnan/rpack.git
60 lines
1.8 KiB
TOML
60 lines
1.8 KiB
TOML
[package]
|
|
name = "rpack"
|
|
version = "0.1.0"
|
|
authors = ["Piotr Siuszko <siuszko@zoho.com>"]
|
|
edition = "2021"
|
|
rust-version = "1.72"
|
|
repository = "https://github.com/Leinnan/rpack.git"
|
|
homepage = "https://github.com/Leinnan/rpack"
|
|
|
|
|
|
[dependencies]
|
|
egui = "0.24.1"
|
|
eframe = { version = "0.24.1", 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_json = "1"
|
|
egui_json_tree = "0.2"
|
|
|
|
# You only need serde if you want app persistence:
|
|
serde = { version = "1", features = ["derive"] }
|
|
texture_packer = {version="0.25.0", features = ["common"]}
|
|
image = { version = "0.24", features = ["jpeg", "png"] }
|
|
egui_extras = { version = "*", features = ["all_loaders"] }
|
|
rfd = {version="0.12", features = []}
|
|
wasm-bindgen-futures = "0.4.39"
|
|
|
|
# native:
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
env_logger = "0.10"
|
|
|
|
# web:
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
wasm-bindgen-futures = "0.4"
|
|
wasm-bindgen = "0.2"
|
|
web-sys = {version = "0.3", features=["Url","HtmlAnchorElement","Blob", "BlobPropertyBag"]}
|
|
js-sys = "0.3"
|
|
|
|
|
|
[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" }
|