Add support for std/no_std num-traits.
This commit is contained in:
parent
f3bd7cee24
commit
b548566802
@ -22,13 +22,10 @@ maintenance = { status = "actively-developed" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std", "impl-cgmath"]
|
default = ["std", "impl-cgmath"]
|
||||||
serialization = ["serde", "serde_derive"]
|
serialization = ["serde", "serde_derive"]
|
||||||
std = []
|
std = ["num-traits/std"]
|
||||||
impl-cgmath = ["cgmath"]
|
impl-cgmath = ["cgmath"]
|
||||||
impl-nalgebra = ["nalgebra"]
|
impl-nalgebra = ["nalgebra"]
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
num-traits = "0.2"
|
|
||||||
|
|
||||||
[dependencies.nalgebra]
|
[dependencies.nalgebra]
|
||||||
version = ">=0.14, <0.17"
|
version = ">=0.14, <0.17"
|
||||||
optional = true
|
optional = true
|
||||||
@ -37,6 +34,10 @@ optional = true
|
|||||||
version = "0.16"
|
version = "0.16"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
|
[dependencies.num-traits]
|
||||||
|
num-traits = "0.2"
|
||||||
|
default-features = false
|
||||||
|
|
||||||
[dependencies.serde]
|
[dependencies.serde]
|
||||||
version = "1"
|
version = "1"
|
||||||
optional = true
|
optional = true
|
||||||
|
Loading…
Reference in New Issue
Block a user