Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up update cargo
- Loading branch information
Showing
20 changed files
with
73 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
3 changes: 1 addition & 2 deletions
3
testing/jormungandr-integration-tests/src/common/jormungandr/configuration_builder.rs
This file contains 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 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 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 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
2 changes: 1 addition & 1 deletion
2
testing/jormungandr-integration-tests/src/jcli/genesis/encode.rs
This file contains 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 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 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 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 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,3 +2,5 @@ pub mod legacy; | |
pub mod stake_pool; | ||
pub mod testing; | ||
pub mod wallet; | ||
|
||
pub use legacy::{version_0_8_19, Version}; |
File renamed without changes.
This file contains 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
15 changes: 6 additions & 9 deletions
15
...rc/common/legacy/configuration_builder.rs → ...iguration/legacy/configuration_builder.rs
This file contains 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
6 changes: 6 additions & 0 deletions
6
testing/jormungandr-testing-utils/src/testing/configuration/legacy/mod.rs
This file contains 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,6 @@ | ||
mod configuration_builder; | ||
mod node; | ||
|
||
pub use configuration_builder::{ | ||
LegacyConfigConverter, LegacyConfigConverterError, LegacyNodeConfigConverter, | ||
}; |
4 changes: 1 addition & 3 deletions
4
...tegration-tests/src/common/legacy/node.rs → .../src/testing/configuration/legacy/node.rs
This file contains 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
32 changes: 32 additions & 0 deletions
32
testing/jormungandr-testing-utils/src/testing/configuration/mod.rs
This file contains 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,32 @@ | ||
extern crate lazy_static; | ||
extern crate rand; | ||
|
||
use self::lazy_static::lazy_static; | ||
use self::rand::Rng; | ||
use std::path::PathBuf; | ||
use std::sync::atomic::{AtomicU16, Ordering}; | ||
|
||
mod block0_config_builder; | ||
mod jormungandr_config; | ||
mod legacy; | ||
mod node_config; | ||
mod node_config_builder; | ||
mod secret_model_factory; | ||
|
||
pub use block0_config_builder::Block0ConfigurationBuilder; | ||
pub use jormungandr_config::JormungandrParams; | ||
pub use legacy::{LegacyConfigConverter, LegacyConfigConverterError, LegacyNodeConfigConverter}; | ||
pub use node_config::TestConfig; | ||
pub use node_config_builder::NodeConfigBuilder; | ||
pub use secret_model_factory::{write_secret, SecretModelFactory}; | ||
|
||
lazy_static! { | ||
static ref NEXT_AVAILABLE_PORT_NUMBER: AtomicU16 = { | ||
let initial_port = rand::thread_rng().gen_range(6000, 10999); | ||
AtomicU16::new(initial_port) | ||
}; | ||
} | ||
|
||
pub fn get_available_port() -> u16 { | ||
NEXT_AVAILABLE_PORT_NUMBER.fetch_add(1, Ordering::SeqCst) | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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