Use serde1 feature
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
name = "sbp"
|
||||
version = "0.1.1"
|
||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
ndarray = { version = "0.15.0", features = ["approx"] }
|
||||
|
||||
@@ -4,12 +4,12 @@ use crate::Float;
|
||||
mod jacobi;
|
||||
#[cfg(feature = "sparse")]
|
||||
pub use jacobi::*;
|
||||
#[cfg(feature = "serde")]
|
||||
#[cfg(feature = "serde1")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
#[cfg(feature = "sparse")]
|
||||
pub use sprs::kronecker_product;
|
||||
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
|
||||
#[derive(Copy, Clone, Debug, Default)]
|
||||
/// struct to hold output for four directions
|
||||
pub struct Direction<T> {
|
||||
|
||||
Reference in New Issue
Block a user