From 87a36fd4c29a326cce3f52df2a268b2d9ad82775 Mon Sep 17 00:00:00 2001 From: gammelalf <31348226+gammelalf@users.noreply.github.com> Date: Fri, 10 Jun 2022 14:39:20 +0200 Subject: [PATCH] Renamed crate --- Cargo.toml | 2 +- benches/common/bezier.rs | 2 +- benches/common/samples.rs | 2 +- wasm/Cargo.toml | 4 ++-- wasm/src/lib.rs | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cd20d4a..ce7b9cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "gammalg" +name = "nbezier" version = "0.1.0" edition = "2021" diff --git a/benches/common/bezier.rs b/benches/common/bezier.rs index 2811622..7fb9082 100644 --- a/benches/common/bezier.rs +++ b/benches/common/bezier.rs @@ -1,5 +1,5 @@ use criterion::{black_box, Criterion}; -use gammalg::bezier::BezierCurve; +use nbezier::bezier::BezierCurve; use crate::common::samples::CURVES; macro_rules! bench_curve_types { diff --git a/benches/common/samples.rs b/benches/common/samples.rs index 390c81a..08a5a86 100644 --- a/benches/common/samples.rs +++ b/benches/common/samples.rs @@ -1,7 +1,7 @@ use once_cell::sync::Lazy; use smallvec::smallvec; use nalgebra::Vector2; -use gammalg::bezier::BezierCurve; +use nbezier::bezier::BezierCurve; /// Points generated randomly /// ```python diff --git a/wasm/Cargo.toml b/wasm/Cargo.toml index 1c3a012..af9f8f6 100644 --- a/wasm/Cargo.toml +++ b/wasm/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "gammalg-wasm" +name = "nbezier-wasm" version = "0.1.0" edition = "2021" @@ -12,4 +12,4 @@ wasm-bindgen = { version = "0.2", features = ["serde-serialize"] } js-sys = "0.3" web-sys = { version = "0.3", features = ["CanvasRenderingContext2d"] } nalgebra = "0.31" -gammalg = { version = "0.1.0", path = ".." } +nbezier = { version = "0.1.0", path = ".." } diff --git a/wasm/src/lib.rs b/wasm/src/lib.rs index 4fa0243..47c41ae 100644 --- a/wasm/src/lib.rs +++ b/wasm/src/lib.rs @@ -3,9 +3,9 @@ use wasm_bindgen::prelude::*; use js_sys::Array; use web_sys::CanvasRenderingContext2d; use nalgebra::Vector2; -use gammalg::bezier::BezierCurve; -use gammalg::bounding_box::BoundingBox; -use gammalg::graham_scan::convex_hull; +use nbezier::bezier::BezierCurve; +use nbezier::bounding_box::BoundingBox; +use nbezier::graham_scan::convex_hull; #[derive(Deserialize)] pub struct Point {