mirror of https://codeberg.org/topola/topola.git
49 lines
1.6 KiB
TOML
49 lines
1.6 KiB
TOML
# SPDX-FileCopyrightText: 2024 Topola contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT OR Apache-2.0
|
|
|
|
[package]
|
|
name = "topola-egui"
|
|
description = "Graphical user interface for Topola PCB router in Egui/Eframe framework."
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[features]
|
|
default = ["xdg-portal"]
|
|
gtk3 = ["rfd/gtk3"]
|
|
xdg-portal = ["rfd/xdg-portal"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"]
|
|
|
|
[dependencies]
|
|
derive-getters.workspace = true
|
|
egui = { version = "0.33", features = ["serde"] }
|
|
eframe = { version = "0.33", 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.
|
|
"wayland", # To support Linux (and CI).
|
|
"x11", # To support older Linux distributions (restores one of the default features).
|
|
] }
|
|
fluent-templates = "0.13"
|
|
log = "0.4"
|
|
rfd = { version = "0.17", default-features = false }
|
|
specctra = { path = "../specctra" }
|
|
topola = { path = "../topola" }
|
|
unic-langid = { version = "0.9", features = ["macros", "serde"] }
|
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
# Native:
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
futures-lite = "2.6"
|
|
env_logger = "0.11"
|
|
|
|
# Web:
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
wasm-bindgen-futures = "0.4"
|
|
web-sys = "0.3" # To access the DOM to hide the loading text.
|