feat: puts ndarray and nalgebra bindings behind feature flags

This commit is contained in:
Volodymyr Orlov
2020-08-28 16:55:41 -07:00
parent 367ea62608
commit 68dca25f91
8 changed files with 173 additions and 125 deletions
+7 -2
View File
@@ -4,9 +4,14 @@ version = "0.1.0"
authors = ["SmartCore Developers"]
edition = "2018"
[features]
default = []
ndarray-bindings = ["ndarray"]
nalgebra-bindings = ["nalgebra"]
[dependencies]
ndarray = "0.13"
nalgebra = "0.22.0"
ndarray = { version = "0.13", optional = true }
nalgebra = { version = "0.22.0", optional = true }
num-traits = "0.2.12"
num = "0.3.0"
rand = "0.7.3"