From 3a80560a68ae1e86df55ab51d29acd3e45d8467c Mon Sep 17 00:00:00 2001 From: jneem Date: Fri, 24 Oct 2025 17:12:01 -0500 Subject: [PATCH] Move from poly-cool to polycool (#3309) --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- node-graph/gcore/Cargo.toml | 2 +- .../gcore/src/vector/algorithms/bezpath_algorithms.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ddb7df6e..0190928b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2109,7 +2109,7 @@ dependencies = [ "num-traits", "parley", "petgraph 0.7.1", - "poly-cool", + "polycool", "rand 0.9.2", "rand_chacha 0.9.0", "rustc-hash 2.1.1", @@ -4191,10 +4191,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3" [[package]] -name = "poly-cool" -version = "0.3.2" +name = "polycool" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8370a553db72b99cd797d84e98f4f3a43bc7b57a3d9f0c9f095cbb24683694c1" +checksum = "50596ddc09eb5ad5f75cacd40209568e66df71baf86e1499a0e99c4cff12a5a6" dependencies = [ "arrayvec", ] diff --git a/Cargo.toml b/Cargo.toml index c2a361da..1ad030f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -194,7 +194,7 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] } tracing = "0.1" rfd = "0.15" open = "5.3" -poly-cool = "0.3" +polycool = "0.4" spin = "0.10" clap = "4.5" spirv-std = { git = "https://github.com/Firestar99/rust-gpu-new", rev = "c12f216121820580731440ee79ebc7403d6ea04f", features = ["bytemuck"] } diff --git a/node-graph/gcore/Cargo.toml b/node-graph/gcore/Cargo.toml index a549c1ed..925d59d1 100644 --- a/node-graph/gcore/Cargo.toml +++ b/node-graph/gcore/Cargo.toml @@ -39,7 +39,7 @@ kurbo = { workspace = true } lyon_geom = { workspace = true } log = { workspace = true } base64 = { workspace = true } -poly-cool = { workspace = true } +polycool = { workspace = true } # Optional workspace dependencies serde = { workspace = true, optional = true } diff --git a/node-graph/gcore/src/vector/algorithms/bezpath_algorithms.rs b/node-graph/gcore/src/vector/algorithms/bezpath_algorithms.rs index a0723b34..4868fd8f 100644 --- a/node-graph/gcore/src/vector/algorithms/bezpath_algorithms.rs +++ b/node-graph/gcore/src/vector/algorithms/bezpath_algorithms.rs @@ -249,7 +249,7 @@ pub fn pathseg_normals_to_point(segment: PathSeg, point: Point) -> Vec { let y = y.coefficients_mut(); x[0] -= point.x; y[0] -= point.y; - let poly = poly_cool::Poly::new([ + let poly = polycool::Poly::new([ x[0] * x[1] + y[0] * y[1], x[1] * x[1] + y[1] * y[1] + 2. * (x[0] * x[2] + y[0] * y[2]), 3. * (x[2] * x[1] + y[2] * y[1]) + 3. * (x[0] * x[3] + y[0] * y[3]),