mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
* Fix poisson disk sampling with nested subpaths Previously all subpaths were considered independently for the poisson disk sampling evaluation. We now check agains all subpaths which might contain the point to fix shapes with holes such as fonts with letters with holes in them * Fix wasm demo * Fix counting overlapping areas twice * Rename shape variables to subpath variants
95 lines
2.8 KiB
TOML
95 lines
2.8 KiB
TOML
[package]
|
|
name = "graphene-core"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
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",
|
|
] }
|
|
serde_json = { workspace = true }
|
|
petgraph = { workspace = true, default-features = false, features = [
|
|
"graphmap",
|
|
] }
|
|
rustc-hash = { workspace = true }
|
|
math-parser = { path = "../../libraries/math-parser" }
|
|
|
|
# Required dependencies
|
|
half = { version = "2.4.1", default-features = false, features = ["bytemuck"] }
|
|
tinyvec = { version = "1" }
|
|
|
|
# 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, features = ["log"] }
|
|
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",
|
|
] }
|
|
|
|
[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"))',
|
|
] }
|