make num-traits std optional

This commit is contained in:
Max 2023-02-22 14:20:01 +01:00
parent ed4d0ee1fd
commit e9b22460ab

View File

@ -13,10 +13,10 @@ categories = ["Science", "Simulation"]
[dependencies] [dependencies]
typenum = "1.16" typenum = "1.16"
num-traits = "0.2" num-traits = [version = "0.2", default-features = false]
defmt = { version = "0.3", optional = true } defmt = { version = "0.3", optional = true }
[features] [features]
default = ["std"] default = ["std"]
defmt = ["dep:defmt"] defmt = ["dep:defmt"]
std = [] std = ["num-traits/std"]