ff: Make byteorder an optional dependency under the std feature flag

Building ff with the std feature flag was previously broken because it
required importing byteorder functionality behind the byteorder/std
feature flag. We don't use byteorder inside ff in no_std mode, so we can
just make it optional.
This commit is contained in:
Jack Grigg 2020-01-14 21:31:09 -05:00
parent 8887414c49
commit 00a4e1388b
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ repository = "https://github.com/ebfull/ff"
edition = "2018"
[dependencies]
byteorder = { version = "1", default-features = false }
byteorder = { version = "1", optional = true }
ff_derive = { version = "0.4.0", path = "ff_derive", optional = true }
rand_core = { version = "0.5", default-features = false }
subtle = { version = "2.2.1", default-features = false, features = ["i128"] }
@ -19,7 +19,7 @@ subtle = { version = "2.2.1", default-features = false, features = ["i128"] }
[features]
default = ["std"]
derive = ["ff_derive"]
std = []
std = ["byteorder"]
[badges]
maintenance = { status = "actively-developed" }