Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use core and alloc crates for no_std compatibility (Take 2) #993

Merged
merged 22 commits into from
Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5567163
Use core and alloc crates for no_std compatibility
soareschen Sep 29, 2021
86ff845
Disable default-features for all dependencies
soareschen Sep 30, 2021
a2eb2dc
Fix features
soareschen Sep 30, 2021
5be3f73
Fix more features
soareschen Sep 30, 2021
f8957a7
Fix lightclient-js test
soareschen Sep 30, 2021
6939321
Disable "ed25519-dalek/serde" feature as it does not support std
soareschen Oct 4, 2021
109f6b4
Remove "subtle-encoding/std" feature from tendermint-proto
soareschen Oct 5, 2021
849e8c9
Merge branch 'master' into soares/use-core-alloc-2
soareschen Oct 7, 2021
be81f85
Merge branch 'master' into soares/use-core-alloc-2
soareschen Oct 7, 2021
951c060
Merge branch 'master' into soares/use-core-alloc-2
soareschen Oct 7, 2021
c1becc9
Merge latest changes from master and fix conflicts
thanethomson Oct 25, 2021
b70ba62
Fix conflicts
thanethomson Oct 25, 2021
a28ee20
testgen: Remove unnecessary return
thanethomson Oct 25, 2021
335e6a9
testgen: Enable serde_json/std feature to fix error
thanethomson Oct 25, 2021
7bc04ab
proto: Fix formatting in docstring
thanethomson Oct 25, 2021
43d5e77
Remove default std features in tendermint crates
soareschen Oct 26, 2021
f9145cb
Add default-features = false for tendermint-config
soareschen Oct 26, 2021
8721165
Fix build errors and update flex-error version
soareschen Oct 26, 2021
9ac5c16
Disable use of std in tendermint and tendermint-proto crates
soareschen Oct 26, 2021
40af7a7
Fix formatting
soareschen Oct 26, 2021
4faa88d
Enable flex-error/std and flex-error/eyre_tracer by default in crates
soareschen Oct 26, 2021
7d32779
proto: Restructure serializer docs into table
thanethomson Oct 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix build errors and update flex-error version
  • Loading branch information
soareschen committed Oct 26, 2021
commit 872116539db00701c71d3f78e74a5bf100a9480e
2 changes: 1 addition & 1 deletion abci/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ bytes = { version = "1.0", default-features = false }
prost = { package = "informalsystems-prost", version = "0.8.1", default-features = false }
tendermint-proto = { version = "0.23.0-internal", default-features = false, path = "../proto" }
tracing = { version = "0.1", default-features = false }
flex-error = { version = "0.4.3", default-features = false }
flex-error = { version = "0.4.4", default-features = false }
structopt = { version = "0.3", optional = true, default-features = false }
tracing-subscriber = { version = "0.2", optional = true, default-features = false }
2 changes: 1 addition & 1 deletion config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ crate-type = ["cdylib", "rlib"]

[dependencies]
tendermint = { version = "0.23.0-internal", default-features = false, path = "../tendermint" }
flex-error = { version = "0.4.1", default-features = false }
flex-error = { version = "0.4.4", default-features = false }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = { version = "0.5" }
Expand Down
4 changes: 2 additions & 2 deletions light-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ serde_derive = { version = "1.0.106", default-features = false }
sled = { version = "0.34.3", optional = true, default-features = false }
static_assertions = { version = "1.1.0", default-features = false }
tokio = { version = "1.0", default-features = false, features = ["rt"], optional = true }
flex-error = { version = "0.4.3", default-features = false }
flex-error = { version = "0.4.4", default-features = false }

[dev-dependencies]
tendermint-testgen = { path = "../testgen", default-features = false }
Expand All @@ -64,4 +64,4 @@ proptest = { version = "0.10.1", default-features = false, features = ["std"] }

[[example]]
name = "light_client"
required-features = ["rpc-client", "tendermint-rpc/http-client"]
required-features = ["rpc-client", "tendermint-rpc/http-client", "flex-error/std"]
2 changes: 1 addition & 1 deletion p2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ x25519-dalek = { version = "1.1", default-features = false }
zeroize = { version = "1", default-features = false }
signature = { version = "1.3.0", default-features = false }
aead = { version = "0.4.1", default-features = false }
flex-error = { version = "0.4.3", default-features = false }
flex-error = { version = "0.4.4", default-features = false }

# path dependencies
tendermint = { path = "../tendermint", version = "0.23.0-internal", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ subtle-encoding = { version = "0.5", default-features = false, features = ["hex"
num-traits = { version = "0.2", default-features = false }
num-derive = { version = "0.3", default-features = false }
chrono = { version = "0.4", default-features = false, features = ["serde", "alloc"] }
flex-error = { version = "0.4.3", default-features = false }
flex-error = { version = "0.4.4", default-features = false }

[dev-dependencies]
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
2 changes: 1 addition & 1 deletion rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ uuid = { version = "0.8", default-features = false }
subtle-encoding = { version = "0.5", default-features = false, features = ["bech32-preview"] }
url = { version = "2.2", default-features = false }
walkdir = { version = "2.3", default-features = false }
flex-error = { version = "0.4.3", default-features = false }
flex-error = { version = "0.4.4", default-features = false }

# Optional dependencies
async-trait = { version = "0.1", optional = true, default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion tendermint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ subtle = { version = "2", default-features = false }
subtle-encoding = { version = "0.5", default-features = false, features = ["bech32-preview"] }
tendermint-proto = { version = "0.23.0-internal", default-features = false, path = "../proto" }
zeroize = { version = "1.1", default-features = false, features = ["zeroize_derive", "alloc"] }
flex-error = { version = "0.4.3", default-features = false }
flex-error = { version = "0.4.4", default-features = false }
k256 = { version = "0.9", optional = true, default-features = false, features = ["ecdsa", "sha256"] }
ripemd160 = { version = "0.9", default-features = false, optional = true }

Expand Down
2 changes: 1 addition & 1 deletion test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test = true

[dev-dependencies]
ed25519-dalek = { version = "1", default-features = false, features = ["rand"] }
flex-error = { version = "0.4.3", default-features = false }
flex-error = { version = "0.4.4", default-features = false }
flume = { version = "0.10", default-features = false }
rand_core = { version = "0.5", default-features = false, features = ["std"] }
readwrite = { version = "^0.1.1", default-features = false }
Expand Down