mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-25 03:53:23 +01:00
105 lines
3.3 KiB
TOML
105 lines
3.3 KiB
TOML
[workspace]
|
||
resolver = "3"
|
||
members = [".", "crates/*"]
|
||
default-members = [".", "crates/*"]
|
||
|
||
[workspace.package]
|
||
# 0.1.0 is the early alpha (release stage in src/app.rs, RELEASE_STAGE); see CHANGELOG.md
|
||
# and docs/release.md.
|
||
version = "0.1.0"
|
||
edition = "2024"
|
||
license = "MIT OR Apache-2.0"
|
||
# An application, not a library: not published to crates.io.
|
||
publish = false
|
||
repository = "https://github.com/storytold/AniCraft"
|
||
rust-version = "1.90"
|
||
|
||
[workspace.dependencies]
|
||
anicraft-geom = { path = "crates/geom" }
|
||
anicraft-doc = { path = "crates/doc" }
|
||
anicraft-render = { path = "crates/render" }
|
||
anicraft-engine = { path = "crates/engine" }
|
||
anicraft-xfl = { path = "crates/xfl" }
|
||
anicraft-xml = { path = "crates/xml" }
|
||
anicraft-svg = { path = "crates/svg" }
|
||
serde = { version = "1", features = ["derive"] }
|
||
serde_json = "1"
|
||
thiserror = "2"
|
||
rayon = "1"
|
||
png = "0.17"
|
||
# JPEG decoding for imported images (already in the tree; MIT OR Apache-2.0 OR Zlib).
|
||
zune-jpeg = { version = "0.5", default-features = false }
|
||
gif = "0.14"
|
||
# wgpu is the primary renderer; glow (OpenGL) is the fallback for GPUs/VMs where wgpu fails.
|
||
# Default features off: we skip `links` (opening web links pulls in url/idna/ICU Unicode
|
||
# tables we don't use) and the web-only screen-reader shim. Same set as PhotoCraft, plus glow.
|
||
eframe = { version = "0.36", default-features = false, features = ["accesskit", "default_fonts", "wgpu", "glow", "wayland", "x11"] }
|
||
# Native file dialogs: Windows common dialogs, macOS NSOpenPanel, Linux XDG desktop portal.
|
||
rfd = "0.17"
|
||
# Lists and loads the OS's installed fonts for Preferences › Appearance (MIT).
|
||
# Without the `fontconfig` feature, Linux scans the standard font folders directly
|
||
# (/usr/share/fonts, /usr/local/share/fonts, ~/.local/share/fonts, ~/.fonts).
|
||
fontdb = { version = "0.23", default-features = false, features = ["std", "fs", "memmap"] }
|
||
egui = "0.36"
|
||
|
||
[workspace.lints.rust]
|
||
unsafe_code = "forbid"
|
||
|
||
[workspace.lints.clippy]
|
||
dbg_macro = "warn"
|
||
todo = "warn"
|
||
|
||
[package]
|
||
name = "anicraft"
|
||
description = "AniCraft desktop app: egui shell over the AniCraft engine"
|
||
version.workspace = true
|
||
edition.workspace = true
|
||
license.workspace = true
|
||
publish.workspace = true
|
||
repository.workspace = true
|
||
default-run = "anicraft"
|
||
|
||
[[bin]]
|
||
name = "anicraft"
|
||
path = "src/main.rs"
|
||
|
||
[dependencies]
|
||
anicraft-geom.workspace = true
|
||
anicraft-doc.workspace = true
|
||
anicraft-render.workspace = true
|
||
anicraft-engine.workspace = true
|
||
eframe.workspace = true
|
||
egui.workspace = true
|
||
rfd.workspace = true
|
||
serde.workspace = true
|
||
fontdb.workspace = true
|
||
serde_json.workspace = true
|
||
|
||
[lints]
|
||
workspace = true
|
||
|
||
# ----- build profiles: biased for disk space, then time (docs/development.md › Build footprint) --
|
||
|
||
[profile.dev]
|
||
opt-level = 1
|
||
# File:line in backtraces and panics, without full variable debug info (a fraction of the size;
|
||
# also keeps Windows PDBs under the LNK1140 limit).
|
||
debug = "line-tables-only"
|
||
# The incremental cache was ~3 GB for our crates; they rebuild from scratch in seconds.
|
||
incremental = false
|
||
|
||
[profile.dev.package."*"]
|
||
# Dependencies: optimized once (fast app in debug builds), no debug info at all.
|
||
opt-level = 2
|
||
debug = false
|
||
|
||
[profile.dev.build-override]
|
||
# Build scripts and proc-macros: compile fast, no debug info.
|
||
opt-level = 0
|
||
debug = false
|
||
|
||
[profile.release]
|
||
lto = "thin"
|
||
codegen-units = 1
|
||
strip = "debuginfo"
|