Skip to content

Commit 910e95e

Browse files
authored
Merge pull request #30 from ratmice/wincode
Since bincode is unmaintained use wincode instead
2 parents 57fa680 + b2b4cf6 commit 910e95e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ license = "Apache-2.0/MIT"
1010
categories = ["data-structures"]
1111

1212
[features]
13-
bincode = ["dep:bincode", "vob/bincode", "packedvec/bincode"]
13+
wincode = ["dep:wincode", "vob/wincode", "packedvec/wincode"]
1414
serde = ["dep:serde", "vob/serde", "packedvec/serde"]
1515

1616
[dependencies]
1717
vob = { version="3.0.4" }
18-
packedvec = { version="1.2.5" }
18+
packedvec = { version="2.0" }
1919
serde = { version="1.0", features=["derive"], optional=true }
20-
bincode = { version="2.0", features=["derive"], optional=true }
20+
wincode = { version="0.5.5", features=["derive"], optional=true }
2121
num-traits = "0.2"
2222

2323
[dev-dependencies]

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![allow(clippy::many_single_char_names)]
22

3-
#[cfg(feature = "bincode")]
4-
use bincode::{Decode, Encode};
3+
#[cfg(feature = "wincode")]
4+
use wincode::{SchemaRead, SchemaWrite};
55
use num_traits::{AsPrimitive, FromPrimitive, PrimInt, ToPrimitive, Unsigned};
66
use packedvec::PackedVec;
77
#[cfg(feature = "serde")]
@@ -62,7 +62,7 @@ use vob::Vob;
6262
/// value = c[pos] // =3
6363
/// ```
6464
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
65-
#[cfg_attr(feature = "bincode", derive(Encode, Decode))]
65+
#[cfg_attr(feature = "wincode", derive(SchemaRead, SchemaWrite))]
6666
#[derive(Debug)]
6767
pub struct SparseVec<T> {
6868
displacement: Vec<usize>, // Displacement vector

0 commit comments

Comments
 (0)