86 lines
2.4 KiB
TOML
86 lines
2.4 KiB
TOML
[package]
|
|
name = "graphite-editor"
|
|
publish = false
|
|
version = "0.0.0"
|
|
rust-version = "1.85"
|
|
authors = ["Graphite Authors <contact@graphite.rs>"]
|
|
edition = "2024"
|
|
readme = "../README.md"
|
|
homepage = "https://graphite.rs"
|
|
repository = "https://github.com/GraphiteEditor/Graphite"
|
|
license = "Apache-2.0"
|
|
|
|
[features]
|
|
default = ["wasm"]
|
|
wasm = ["wasm-bindgen", "graphene-std/wasm", "wasm-bindgen-futures"]
|
|
gpu = [
|
|
"interpreted-executor/gpu",
|
|
"wgpu-executor",
|
|
]
|
|
tauri = ["ron", "decouple-execution"]
|
|
decouple-execution = []
|
|
resvg = ["graphene-std/resvg"]
|
|
vello = ["graphene-std/vello", "resvg"]
|
|
ron = ["dep:ron"]
|
|
|
|
[dependencies]
|
|
# Local dependencies
|
|
graphite-proc-macros = { path = "../proc-macros" }
|
|
graph-craft = { path = "../node-graph/graph-craft" }
|
|
interpreted-executor = { path = "../node-graph/interpreted-executor", features = [
|
|
"serde",
|
|
] }
|
|
graphene-std = { path = "../node-graph/gstd", features = ["serde"] }
|
|
|
|
# Workspace dependencies
|
|
js-sys = { workspace = true }
|
|
log = { workspace = true }
|
|
bitflags = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
bezier-rs = { workspace = true }
|
|
futures = { workspace = true }
|
|
glam = { workspace = true, features = ["serde", "debug-glam-assert"] }
|
|
derivative = { workspace = true }
|
|
specta = { workspace = true }
|
|
image = { workspace = true, features = ["bmp", "png"] }
|
|
dyn-any = { workspace = true }
|
|
num_enum = { workspace = true }
|
|
usvg = { workspace = true }
|
|
once_cell = { workspace = true }
|
|
web-sys = { workspace = true, features = [
|
|
"Document",
|
|
"DomRect",
|
|
"Element",
|
|
"HtmlCanvasElement",
|
|
"CanvasRenderingContext2d",
|
|
"CanvasPattern",
|
|
"OffscreenCanvas",
|
|
"OffscreenCanvasRenderingContext2d",
|
|
"TextMetrics",
|
|
] }
|
|
|
|
# Required dependencies
|
|
spin = "0.9.8"
|
|
|
|
# Optional local dependencies
|
|
wgpu-executor = { path = "../node-graph/wgpu-executor", optional = true }
|
|
|
|
# Optional workspace dependencies
|
|
wasm-bindgen = { workspace = true, optional = true }
|
|
wasm-bindgen-futures = { workspace = true, optional = true }
|
|
ron = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
# Workspace dependencies
|
|
env_logger = { workspace = true }
|
|
futures = { workspace = true }
|
|
tokio = { workspace = true, features = ["rt", "macros"] }
|
|
|
|
[lints.rust]
|
|
# TODO: figure out why we check these features when they do not exist
|
|
unexpected_cfgs = { level = "warn", check-cfg = [
|
|
'cfg(feature, values("resvg", "vello"))',
|
|
] }
|