Use weak dependencies

This commit is contained in:
Magnus Ulimoen 2022-05-17 08:03:05 +02:00
parent 05873c0e22
commit 70cab01334
3 changed files with 4 additions and 4 deletions

View File

@ -11,4 +11,4 @@ sbp = { path = "../sbp" }
json5 = { version = "0.2.8", optional = true }
[features]
serde = ["sbp/serde1", "json5"]
serde = ["sbp/serde1", "dep:json5"]

View File

@ -5,7 +5,7 @@ authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
edition = "2018"
[features]
sparse = ["sbp/sparse", "sprs"]
sparse = ["sbp/sparse", "dep:sprs"]
[dependencies]
ndarray = "0.15.0"

View File

@ -17,8 +17,8 @@ core_simd = { git = "https://github.com/rust-lang/portable-simd" }
[features]
# Use f32 as precision, default is f64
f32 = ["float/f32"]
sparse = ["sprs"]
serde1 = ["serde", "ndarray/serde"]
sparse = ["dep:sprs"]
serde1 = ["dep:serde", "ndarray/serde"]
[dev-dependencies]
iai = "0.1.1"