Skip to content

Commit

Permalink
fix: get serde feature work with no-std
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani committed Jul 27, 2023
1 parent 72c4de5 commit 27868a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ripemd = {version = "0.1.1", optional = true, default-features = false}
sha2 = {version = "0.10.2", optional = true, default-features = false}
sha3 = {version = "0.10.2", optional = true, default-features = false}
serde = {version = "1.0", optional = true, default-features = false}
informalsystems-pbjson = { git = "https://github.com/informalsystems/pbjson", rev = "e54f504", default-features = false, optional = true }
informalsystems-pbjson = { git = "https://github.com/informalsystems/pbjson", rev = "e54f504", optional = true, default-features = false }

[dev-dependencies]
ripemd = {version = "0.1.1"}
Expand All @@ -32,10 +32,10 @@ sha2 = {version = "0.10.2"}
sha3 = {version = "0.10.2"}

[features]
default = ["std", "host-functions", "serde"]
default = ["std", "host-functions"]

std = ["prost/std", "bytes/std", "hex/std", "anyhow/std"]
std = ["prost/std", "bytes/std", "hex/std", "anyhow/std", "informalsystems-pbjson/std", "serde/std"]

host-functions = ["sha2", "sha3", "ripemd"]

serde = ["serde/std", "informalsystems-pbjson/std"]
serde = ["dep:serde", "informalsystems-pbjson"]

0 comments on commit 27868a6

Please sign in to comment.