Skip to content

Commit 6b9181e

Browse files
Add a feature to turn on/off blas backend
ndarray by default turns off blas backend, but ndarray-linalg turns it on by default and there is no way to turn it off. This change adds a cargo feature to control it. It's a default feature, so users who don't want to use blas backend need `default-features = false` in their Cargo.toml.
1 parent 3e13736 commit 6b9181e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ndarray-linalg/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ readme = "../README.md"
1313
categories = ["algorithms", "science"]
1414

1515
[features]
16-
default = []
16+
default = ["blas"]
17+
blas = ["ndarray/blas"]
1718

1819
netlib = ["lax/netlib"]
1920
openblas = ["lax/openblas"]
@@ -38,7 +39,7 @@ thiserror = "1.0.24"
3839

3940
[dependencies.ndarray]
4041
version = "0.15.2"
41-
features = ["blas", "approx", "std"]
42+
features = ["approx", "std"]
4243
default-features = false
4344

4445
[dependencies.lax]

0 commit comments

Comments
 (0)