Make serde_bytes/alloc dependent on alloc feature.

Fixup for PR #149.
This commit is contained in:
Isis Lovecruft 2020-10-28 00:04:15 +00:00
parent 50b26f0bb4
commit ce5ff27681
No known key found for this signature in database
GPG key ID: AB41313533E8E812

View file

@ -28,7 +28,7 @@ merlin = { version = "2", default-features = false, optional = true }
rand = { version = "0.7", default-features = false, optional = true }
rand_core = { version = "0.5", default-features = false, optional = true }
serde_crate = { package = "serde", version = "1.0", default-features = false, optional = true }
serde_bytes = { version = "0.11", default-features = false, features = ["alloc"], optional = true }
serde_bytes = { version = "0.11", default-features = false, optional = true }
sha2 = { version = "0.9", default-features = false }
zeroize = { version = "1", default-features = false, features = ["zeroize_derive"] }
@ -51,7 +51,7 @@ harness = false
[features]
default = ["std", "rand", "u64_backend"]
std = ["curve25519-dalek/std", "ed25519/std", "serde_crate/std", "sha2/std", "rand/std"]
alloc = ["curve25519-dalek/alloc", "rand/alloc", "zeroize/alloc"]
alloc = ["curve25519-dalek/alloc", "rand/alloc", "serde_bytes/alloc", "zeroize/alloc"]
nightly = ["curve25519-dalek/nightly"]
serde = ["serde_crate", "serde_bytes", "ed25519/serde"]
batch = ["merlin", "rand"]