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 }
|
json5 = { version = "0.2.8", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
serde = ["sbp/serde1", "json5"]
|
serde = ["sbp/serde1", "dep:json5"]
|
||||||
|
|
|
@ -5,7 +5,7 @@ authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
sparse = ["sbp/sparse", "sprs"]
|
sparse = ["sbp/sparse", "dep:sprs"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ndarray = "0.15.0"
|
ndarray = "0.15.0"
|
||||||
|
|
|
@ -17,8 +17,8 @@ core_simd = { git = "https://github.com/rust-lang/portable-simd" }
|
||||||
[features]
|
[features]
|
||||||
# Use f32 as precision, default is f64
|
# Use f32 as precision, default is f64
|
||||||
f32 = ["float/f32"]
|
f32 = ["float/f32"]
|
||||||
sparse = ["sprs"]
|
sparse = ["dep:sprs"]
|
||||||
serde1 = ["serde", "ndarray/serde"]
|
serde1 = ["dep:serde", "ndarray/serde"]
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
iai = "0.1.1"
|
iai = "0.1.1"
|
||||||
|
|
Loading…
Reference in New Issue