mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
* Add support structure for new node macro to gcore * Fix compile issues and code generation * Implement new node_fn macro * Implement property translation * Fix NodeIO type generation * Start translating math nodes * Move node implementation to outer scope to allow usage of local imports * Add expose attribute to allow controlling the parameter exposure * Add rust analyzer support for #[implementations] attribute * Migrate logic nodes * Handle where clause properly * Implement argument ident pattern preservation * Implement adjustment layer mapping * Fix node registry types * Fix module paths * Improve demo artwork comptibility * Improve macro error reporting * Fix handling of impl node implementations * Fix nodeio type computation * Fix opacity node and graph type resolution * Fix loading of demo artworks * Fix eslint * Fix typo in macro test * Remove node definitions for Adjustment Nodes * Fix type alias property generation and make adjustments footprint aware * Convert vector nodes * Implement path overrides * Fix stroke node * Fix painted dreams * Implement experimental type level specialization * Fix poisson disk sampling -> all demo artworks should work again * Port text node + make node macro more robust by implementing lifetime substitution * Fix vector node tests * Fix red dress demo + ci * Fix clippy warnings * Code review * Fix primary input issues * Improve math nodes and audit others * Set no_properties when no automatic properties are derived * Port vector generator nodes (could not derive all definitions yet) * Various QA changes and add min/max/mode_range to number parameters * Add min and max for f64 and u32 * Convert gpu nodes and clean up unused nodes * Partially port transform node * Allow implementations on call arg * Port path modify node * Start porting graphic element nodes * Transform nodes in graphic_element.rs * Port brush node * Port nodes in wasm_executior * Rename node macro * Fix formatting * Fix Mandelbrot node * Formatting * Fix Load Image and Load Resource nodes, add scope input to node macro * Remove unnecessary underscores * Begin attemping to make nodes resolution-aware * Infer a generic manual compositon type on generic call arg * Various fixes and work towards merging * Final changes for merge! * Fix tests, probably * More free line removals! --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
90 lines
2.7 KiB
TOML
90 lines
2.7 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"
|
|
|
|
[features]
|
|
default = ["wasm", "imaginate"]
|
|
gpu = [
|
|
"graphene-core/gpu",
|
|
"gpu-compiler-bin-wrapper",
|
|
"compilation-client",
|
|
"gpu-executor",
|
|
]
|
|
wgpu = ["gpu", "dep:wgpu", "graph-craft/wgpu"]
|
|
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"]
|
|
resvg = ["dep:resvg"]
|
|
wayland = ["graph-craft/wayland"]
|
|
|
|
[dependencies]
|
|
# Local dependencies
|
|
dyn-any = { path = "../../libraries/dyn-any", features = ["derive", "reqwest"] }
|
|
graph-craft = { path = "../graph-craft", features = ["serde"] }
|
|
wgpu-executor = { path = "../wgpu-executor" }
|
|
graphene-core = { path = "../gcore", default-features = false, features = [
|
|
"std",
|
|
"serde",
|
|
"alloc",
|
|
] }
|
|
|
|
# Workspace dependencies
|
|
fastnoise-lite = { workspace = 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 }
|
|
wgpu-types = { workspace = true }
|
|
winit = { workspace = true }
|
|
url = { workspace = true }
|
|
usvg = { workspace = true }
|
|
rand_chacha = { workspace = true }
|
|
rand = { workspace = true, default-features = false, features = [
|
|
"alloc",
|
|
"small_rng",
|
|
] }
|
|
bytemuck = { workspace = true }
|
|
image = { workspace = true, default-features = false, features = [
|
|
"png",
|
|
"jpeg",
|
|
] }
|
|
|
|
# Optional local dependencies
|
|
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 }
|
|
|
|
# Optional workspace dependencies
|
|
base64 = { workspace = true, optional = true }
|
|
wgpu = { workspace = true, optional = true }
|
|
wasm-bindgen = { workspace = true, optional = true }
|
|
js-sys = { workspace = true, optional = true }
|
|
wasm-bindgen-futures = { workspace = true, optional = true }
|
|
tokio = { workspace = true, optional = true, features = ["fs", "io-std"] }
|
|
vello = { workspace = true, optional = true }
|
|
resvg = { workspace = true, optional = true }
|
|
serde = { workspace = true, optional = true, features = ["derive"] }
|
|
web-sys = { workspace = true, optional = true, features = [
|
|
"Window",
|
|
"CanvasRenderingContext2d",
|
|
"ImageData",
|
|
"Document",
|
|
"Navigator",
|
|
"Gpu",
|
|
"HtmlCanvasElement",
|
|
"HtmlImageElement",
|
|
"ImageBitmapRenderingContext",
|
|
] }
|
|
|
|
# Optional dependencies
|
|
image-compare = { version = "0.4.1", optional = true }
|