From 9220765c23aeca4a5b8a01e320bb3367b6b98f2e Mon Sep 17 00:00:00 2001 From: atsuik <54670546+atsuik@users.noreply.github.com> Date: Sat, 13 Jan 2024 23:52:48 +0900 Subject: [PATCH] Add wasm-bindgen feature to enable argmin/wasm-bindgen (#329) --- algorithms/linfa-ftrl/Cargo.toml | 1 + algorithms/linfa-linear/Cargo.toml | 1 + algorithms/linfa-logistic/Cargo.toml | 1 + 3 files changed, 3 insertions(+) diff --git a/algorithms/linfa-ftrl/Cargo.toml b/algorithms/linfa-ftrl/Cargo.toml index 3bc979e8d..c065bbeb3 100644 --- a/algorithms/linfa-ftrl/Cargo.toml +++ b/algorithms/linfa-ftrl/Cargo.toml @@ -15,6 +15,7 @@ categories = ["algorithms", "mathematics", "science"] [features] serde = ["serde_crate", "linfa/serde", "ndarray/serde", "argmin/serde1"] +wasm-bindgen = ["argmin/wasm-bindgen"] [dependencies.serde_crate] package = "serde" diff --git a/algorithms/linfa-linear/Cargo.toml b/algorithms/linfa-linear/Cargo.toml index 11fd98a8f..e4c285720 100644 --- a/algorithms/linfa-linear/Cargo.toml +++ b/algorithms/linfa-linear/Cargo.toml @@ -19,6 +19,7 @@ categories = ["algorithms", "mathematics", "science"] [features] blas = ["ndarray-linalg", "linfa/ndarray-linalg"] serde = ["serde_crate", "linfa/serde", "ndarray/serde", "argmin/serde1"] +wasm-bindgen = ["argmin/wasm-bindgen"] [dependencies.serde_crate] package = "serde" diff --git a/algorithms/linfa-logistic/Cargo.toml b/algorithms/linfa-logistic/Cargo.toml index 54838ebb8..a207676c3 100644 --- a/algorithms/linfa-logistic/Cargo.toml +++ b/algorithms/linfa-logistic/Cargo.toml @@ -15,6 +15,7 @@ categories = ["algorithms", "mathematics", "science"] [features] serde = ["serde_crate", "linfa/serde", "ndarray/serde", "argmin/serde1"] +wasm-bindgen = ["argmin/wasm-bindgen"] [dependencies.serde_crate] package = "serde"