From 0d0266a2969c805ae418b3ffe5db15a472c55e5e Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 19 Jan 2021 11:08:49 +0100 Subject: [PATCH] Remove serde-big-array for M = 6 --- Cargo.toml | 1 - src/lib.rs | 6 ------ 2 files changed, 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 91ad47e..eb570b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,4 +16,3 @@ ordered-float = "2.0" rand = { version = "0.8", features = ["small_rng"] } rayon = "1.5" serde = { version = "1.0.118", features = ["derive"], optional = true } -serde-big-array = { version = "0.3.1", optional = true } diff --git a/src/lib.rs b/src/lib.rs index 38c05f5..48c2cf7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,8 +12,6 @@ use rand::{Rng, SeedableRng}; use rayon::iter::{IntoParallelRefMutIterator, ParallelIterator}; #[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; -#[cfg(feature = "serde")] -use serde_big_array::big_array; /// Parameters for building the `Hnsw` pub struct Builder { @@ -704,13 +702,9 @@ struct ZeroNode { /// The nearest neighbors on this layer /// /// This is always kept in sorted order (near to far). - #[cfg_attr(feature = "serde", serde(with = "BigArray"))] nearest: [PointId; M * 2], } -#[cfg(feature = "serde-big-array")] -big_array! { BigArray; } - impl Default for ZeroNode { fn default() -> ZeroNode { ZeroNode {