mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
* 2115 IP * Initial implementation of Expression node * Register Expression Node * Add Expression DocumentNode Definition * DocumentNodeImplementation::Expresssion in guess_type_from_node * Move expression.rs to graphene-core * WIP: Investigating 'exposed' & 'value_source' params for Expression property * Node graph render debug IP * Single input can change node properties; complex debug IP * Fix epsilon in test * Handle invalid expressions in expression_node by returning 0.0 * Run cargo fmt * Set the default expression to "1 + 1" * Hardcode the A and B inputs at Keavon's request * Rename and clean up UX * Move into ops.rs --------- Co-authored-by: hypercube <0hypercube@gmail.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>
92 lines
2.6 KiB
TOML
92 lines
2.6 KiB
TOML
[package]
|
|
name = "graphene-core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "API definitions for Graphene"
|
|
authors = ["Graphite Authors <contact@graphite.rs>"]
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[features]
|
|
default = ["serde", "kurbo", "log", "std", "rand_chacha", "wasm"]
|
|
log = ["dep:log"]
|
|
gpu = ["spirv-std", "glam/bytemuck", "dyn-any", "glam/libm"]
|
|
nightly = []
|
|
alloc = ["dyn-any", "bezier-rs"]
|
|
type_id_logging = []
|
|
wasm = ["web-sys"]
|
|
wgpu = ["dep:wgpu"]
|
|
vello = ["dep:vello", "bezier-rs/kurbo", "wgpu"]
|
|
dealloc_nodes = ["reflections"]
|
|
std = [
|
|
"dyn-any",
|
|
"dyn-any/std",
|
|
"alloc",
|
|
"glam/std",
|
|
"specta",
|
|
"num-traits/std",
|
|
"rustybuzz",
|
|
"image",
|
|
"reflections",
|
|
]
|
|
reflections = [
|
|
"alloc",
|
|
"ctor",
|
|
]
|
|
serde = [
|
|
"dep:serde",
|
|
"glam/serde",
|
|
"bezier-rs/serde",
|
|
"bezier-rs/serde",
|
|
"half/serde",
|
|
"base64",
|
|
]
|
|
|
|
[dependencies]
|
|
# Workspace dependencies
|
|
bytemuck = { workspace = true, features = ["derive"] }
|
|
node-macro = { workspace = true }
|
|
num-derive = { workspace = true }
|
|
num-traits = { workspace = true, default-features = false, features = ["i128"] }
|
|
usvg = { workspace = true }
|
|
rand = { workspace = true, default-features = false, features = ["std_rng"] }
|
|
glam = { workspace = true, default-features = false, features = [
|
|
"scalar-math",
|
|
] }
|
|
|
|
# Required dependencies
|
|
half = { version = "2.4.1", default-features = false, features = ["bytemuck"] }
|
|
|
|
# Optional workspace dependencies
|
|
dyn-any = { workspace = true, optional = true }
|
|
spirv-std = { workspace = true, optional = true }
|
|
serde = { workspace = true, optional = true, features = ["derive"] }
|
|
ctor = { workspace = true, optional = true }
|
|
log = { workspace = true, optional = true }
|
|
rand_chacha = { workspace = true, optional = true }
|
|
bezier-rs = { workspace = true, optional = true }
|
|
kurbo = { workspace = true, optional = true }
|
|
base64 = { workspace = true, optional = true }
|
|
vello = { workspace = true, optional = true }
|
|
wgpu = { workspace = true, optional = true }
|
|
specta = { workspace = true, optional = true }
|
|
rustybuzz = { workspace = true, optional = true }
|
|
wasm-bindgen = { workspace = true, optional = true }
|
|
js-sys = { workspace = true, optional = true }
|
|
web-sys = { workspace = true, optional = true, features = [
|
|
"HtmlCanvasElement",
|
|
] }
|
|
image = { workspace = true, optional = true, default-features = false, features = [
|
|
"png",
|
|
] }
|
|
math-parser = { path = "../../libraries/math-parser" }
|
|
|
|
[dev-dependencies]
|
|
# Workspace dependencies
|
|
tokio = { workspace = true, features = ["rt", "macros"] }
|
|
serde_json = { workspace = true }
|
|
|
|
[lints.rust]
|
|
# the spirv target is not in the list of common cfgs so must be added manually
|
|
unexpected_cfgs = { level = "warn", check-cfg = [
|
|
'cfg(target_arch, values("spirv"))',
|
|
] }
|