mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
* Refactor Graphite dependency management * Remove deprecated future executor * Code review nits * Remove unused dependencies * Update dependencies and make compile with all features * Replace use of future_executor with wasm-bindgen-futures --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
95 lines
2.9 KiB
TOML
95 lines
2.9 KiB
TOML
[package]
|
|
name = "graphene-std"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Graphene standard library"
|
|
authors = ["Graphite Authors <contact@graphite.rs>"]
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[features]
|
|
default = ["wasm", "imaginate"]
|
|
gpu = [
|
|
"graphene-core/gpu",
|
|
"gpu-compiler-bin-wrapper",
|
|
"compilation-client",
|
|
"gpu-executor",
|
|
]
|
|
vulkan = ["gpu", "vulkan-executor"]
|
|
wgpu = ["gpu", "wgpu-executor", "dep:wgpu"]
|
|
quantization = ["autoquant"]
|
|
wasm = ["wasm-bindgen", "web-sys", "js-sys"]
|
|
imaginate = ["image/png", "base64", "js-sys", "web-sys", "wasm-bindgen-futures"]
|
|
image-compare = ["dep:image-compare"]
|
|
vello = ["dep:vello", "resvg", "gpu", "dep:vello_svg"]
|
|
resvg = ["dep:resvg"]
|
|
wayland = []
|
|
|
|
[dependencies]
|
|
rand = { workspace = true, features = [
|
|
"alloc",
|
|
"small_rng",
|
|
], default-features = false }
|
|
rand_chacha = { workspace = true }
|
|
autoquant = { git = "https://github.com/truedoctor/autoquant", optional = true, features = [
|
|
"fitting",
|
|
] }
|
|
graphene-core = { path = "../gcore", features = [
|
|
"std",
|
|
"serde",
|
|
"alloc",
|
|
], default-features = false }
|
|
dyn-any = { path = "../../libraries/dyn-any", features = ["derive"] }
|
|
graph-craft = { path = "../graph-craft", features = ["serde"] }
|
|
vulkan-executor = { path = "../vulkan-executor", optional = true }
|
|
wgpu-executor = { path = "../wgpu-executor", optional = true }
|
|
gpu-executor = { path = "../gpu-executor", optional = true }
|
|
gpu-compiler-bin-wrapper = { path = "../gpu-compiler/gpu-compiler-bin-wrapper", optional = true }
|
|
compilation-client = { path = "../compilation-client", optional = true }
|
|
bytemuck = { workspace = true }
|
|
image = { workspace = true, default-features = false, features = [
|
|
"png",
|
|
"jpeg",
|
|
] }
|
|
base64 = { workspace = true, optional = true }
|
|
wgpu = { workspace = true, optional = true }
|
|
log = { workspace = true }
|
|
bezier-rs = { workspace = true, features = ["serde"] }
|
|
glam = { workspace = true, features = ["serde"] }
|
|
node-macro = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
reqwest = { workspace = true }
|
|
futures = { workspace = true }
|
|
wasm-bindgen = { workspace = true, optional = true }
|
|
js-sys = { workspace = true, optional = true }
|
|
wgpu-types = { workspace = true }
|
|
wasm-bindgen-futures = { workspace = true, optional = true }
|
|
winit = { workspace = true }
|
|
url = { workspace = true }
|
|
tokio = { workspace = true, optional = true, features = ["fs", "io-std"] }
|
|
image-compare = { version = "0.3.0", optional = true }
|
|
vello = { workspace = true, optional = true }
|
|
vello_svg = { workspace = true, optional = true }
|
|
resvg = { workspace = true, optional = true }
|
|
|
|
[dependencies.serde]
|
|
workspace = true
|
|
optional = true
|
|
features = ["derive"]
|
|
|
|
[dependencies.web-sys]
|
|
workspace = true
|
|
optional = true
|
|
features = [
|
|
"Window",
|
|
"CanvasRenderingContext2d",
|
|
"ImageData",
|
|
"Document",
|
|
"Navigator",
|
|
"Gpu",
|
|
"HtmlCanvasElement",
|
|
"HtmlImageElement",
|
|
"ImageBitmapRenderingContext",
|
|
]
|