From 848f7d665b98ba6f60e4113e450c4957a4342e15 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Thu, 21 Nov 2024 20:26:51 -0800 Subject: [PATCH] Rename the dev feature to reflect its generality --- app-proto/Cargo.toml | 4 ++-- app-proto/src/engine.rs | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app-proto/Cargo.toml b/app-proto/Cargo.toml index 3814c38..38205a7 100644 --- a/app-proto/Cargo.toml +++ b/app-proto/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [features] default = ["console_error_panic_hook"] -irisawa = [] +dev = [] [dependencies] itertools = "0.13.0" @@ -42,7 +42,7 @@ features = [ # https://github.com/rust-lang/cargo/issues/2911#issuecomment-1483256987 # [dev-dependencies] -dyna3 = { path = ".", default-features = false, features = ["irisawa"] } +dyna3 = { path = ".", default-features = false, features = ["dev"] } wasm-bindgen-test = "0.3.34" [profile.release] diff --git a/app-proto/src/engine.rs b/app-proto/src/engine.rs index d41a6dd..285a9c6 100644 --- a/app-proto/src/engine.rs +++ b/app-proto/src/engine.rs @@ -4,9 +4,7 @@ use web_sys::{console, wasm_bindgen::JsValue}; /* DEBUG */ // --- elements --- -/* KLUDGE */ -// temporarily remove test gate so we can use `point` in examples -/* #[cfg(test)] */ +#[cfg(feature = "dev")] pub fn point(x: f64, y: f64, z: f64) -> DVector { DVector::from_column_slice(&[x, y, z, 0.5, 0.5*(x*x + y*y + z*z)]) } @@ -287,7 +285,7 @@ pub fn realize_gram( // "Japan's 'Wasan' Mathematical Tradition", by Abe Haruki // https://www.nippon.com/en/japan-topics/c12801/ // -#[cfg(feature = "irisawa")] +#[cfg(feature = "dev")] pub mod irisawa { use std::{array, f64::consts::PI};