Use weak dependencies
This commit is contained in:
parent
05873c0e22
commit
70cab01334
|
@ -11,4 +11,4 @@ sbp = { path = "../sbp" }
|
|||
json5 = { version = "0.2.8", optional = true }
|
||||
|
||||
[features]
|
||||
serde = ["sbp/serde1", "json5"]
|
||||
serde = ["sbp/serde1", "dep:json5"]
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue