-
Notifications
You must be signed in to change notification settings - Fork 252
Move out tendermint::config
to tendermint-config
crate
#986
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
9c431c6
Move out tendermint::config to tendermint_config crate
soareschen 07a698a
Introduce own error type in tendermint-config
soareschen 4b6888b
Move tendermint::net to tendermint_config::net
soareschen 4e49034
Fix tendermint-rpc error
soareschen 8fc00bb
Update Cargo.toml for tendermint-config
soareschen ba205e2
Remove #![allow(dead_code)]
soareschen 218ab17
Apply suggestions from code review
soareschen 0f83703
Merge branch 'master' into soares/move-tendermint-config
soareschen 4c7a293
Move tendermint_config::files::test to tendermint_config::test
soareschen 29ff94f
Remove config/tests/config.rs
soareschen ddd7d40
Minor fixes
soareschen 540e37f
Resolve conflict in #986 (#1004)
thanethomson fabd123
Merge branch 'master' into soares/move-tendermint-config
soareschen 2c2f814
Fix abci-test
soareschen 4cf19e9
Add changelog entry
thanethomson d00ad51
Add more changelog entries for other breaking changes
thanethomson 12d67c9
Add tendermint-config to release script
thanethomson 2ad95d0
Merge branch 'master' into soares/move-tendermint-config
soareschen 097b434
Fix merge mistakes
soareschen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
members = [ | ||
"abci", | ||
"config", | ||
"light-client", | ||
"light-client-js", | ||
"p2p", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[package] | ||
name = "tendermint-config" | ||
version = "0.21.0" # Also update `html_root_url` in lib.rs and | ||
soareschen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# depending crates (rpc, light-node, ..) when bumping this | ||
license = "Apache-2.0" | ||
homepage = "https://www.tendermint.com/" | ||
repository = "https://github.com/informalsystems/tendermint-rs/tree/master/tendermint" | ||
readme = "../README.md" | ||
categories = ["cryptography", "cryptography::cryptocurrencies", "database"] | ||
keywords = ["blockchain", "bft", "consensus", "cosmos", "tendermint"] | ||
edition = "2018" | ||
|
||
description = """ | ||
Tendermint is a high-performance blockchain consensus engine that powers | ||
Byzantine fault tolerant applications written in any programming language. | ||
This crate provides core types for representing information about Tendermint | ||
blockchain networks, including chain information types, secret connections, | ||
and remote procedure calls (JSON-RPC). | ||
""" | ||
|
||
authors = [ | ||
"Informal Systems <hello@informal.systems>", | ||
"Ismail Khoffi <Ismail.Khoffi@gmail.com>", | ||
"ValarDragon <dojha12@gmail.com>", | ||
"Tony Arcieri <tony@iqlusion.io>", | ||
soareschen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
] | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
[dependencies] | ||
tendermint = { version = "0.21.0", default-features = false, path = "../tendermint" } | ||
flex-error = { version = "0.4.1", default-features = false } | ||
serde = { version = "1", features = ["derive"] } | ||
serde_json = "1" | ||
toml = { version = "0.5" } | ||
url = { version = "2.2" } | ||
|
||
[dev-dependencies] | ||
pretty_assertions = "0.7.2" | ||
|
||
[features] | ||
default = ["std", "eyre_tracer"] | ||
eyre_tracer = ["flex-error/eyre_tracer"] | ||
std = [ | ||
"flex-error/std" | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
use flex_error::{define_error, DisplayOnly}; | ||
use std::io::Error as IoError; | ||
use tendermint::Error as TendermintError; | ||
|
||
define_error! { | ||
#[derive(Debug, Clone, PartialEq, Eq)] | ||
Error { | ||
Io | ||
[ DisplayOnly<IoError> ] | ||
|_| { format_args!("I/O error") }, | ||
|
||
FileIo | ||
{ path: String } | ||
[ DisplayOnly<IoError> ] | ||
|e| { format_args!("failed to open file: {}", e.path) }, | ||
|
||
Parse | ||
{ data: String } | ||
| e | { format_args!("error parsing data: {}", e.data) }, | ||
|
||
SerdeJson | ||
[ DisplayOnly<serde_json::Error> ] | ||
|_| { format_args!("serde json error") }, | ||
|
||
Toml | ||
[ DisplayOnly<toml::de::Error> ] | ||
|_| { format_args!("toml de error") }, | ||
|
||
ParseUrl | ||
[ DisplayOnly<url::ParseError> ] | ||
|_| { format_args!("error parsing url error") }, | ||
|
||
Tendermint | ||
[ TendermintError ] | ||
|_| { format_args!("tendermint error") }, | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pub mod net; | ||
|
||
mod config; | ||
mod error; | ||
mod node_key; | ||
mod priv_validator_key; | ||
|
||
pub use config::*; | ||
pub use error::*; | ||
pub use node_key::NodeKey; | ||
pub use priv_validator_key::PrivValidatorKey; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.