diff --git a/Cargo.lock b/Cargo.lock index 90594e30ae8..94976a2ec56 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4162,7 +4162,7 @@ dependencies = [ [[package]] name = "mithril-client" -version = "0.12.31" +version = "0.12.32" dependencies = [ "anyhow", "async-recursion", @@ -4200,7 +4200,7 @@ dependencies = [ [[package]] name = "mithril-client-cli" -version = "0.12.31" +version = "0.12.32" dependencies = [ "anyhow", "async-trait", diff --git a/mithril-client-cli/Cargo.toml b/mithril-client-cli/Cargo.toml index 2ff00f285fc..5ce4e17d65d 100644 --- a/mithril-client-cli/Cargo.toml +++ b/mithril-client-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mithril-client-cli" -version = "0.12.31" +version = "0.12.32" description = "A Mithril Client" authors = { workspace = true } edition = { workspace = true } diff --git a/mithril-client-cli/src/commands/cardano_db/download/v1.rs b/mithril-client-cli/src/commands/cardano_db/download/v1.rs index dc6197d14b9..f4fc7a0ad7b 100644 --- a/mithril-client-cli/src/commands/cardano_db/download/v1.rs +++ b/mithril-client-cli/src/commands/cardano_db/download/v1.rs @@ -234,9 +234,9 @@ impl PreparedCardanoDbV1Download { mod tests { use mithril_client::{ MithrilCertificateMetadata, - common::{CardanoDbBeacon, ProtocolMessagePartKey, SignedEntityType}, + common::{CardanoDbBeacon, ProtocolMessagePartKey, SignedEntityType, test::Dummy}, }; - use mithril_common::test::{TempDir, double::Dummy}; + use mithril_common::test::TempDir; use super::*; diff --git a/mithril-client-cli/src/commands/cardano_db/download/v2.rs b/mithril-client-cli/src/commands/cardano_db/download/v2.rs index b68d1d42436..7634cddd584 100644 --- a/mithril-client-cli/src/commands/cardano_db/download/v2.rs +++ b/mithril-client-cli/src/commands/cardano_db/download/v2.rs @@ -307,8 +307,8 @@ impl PreparedCardanoDbV2Download { #[cfg(test)] mod tests { + use mithril_client::common::test::Dummy; use mithril_client::common::{AncillaryMessagePart, DigestsMessagePart, ImmutablesMessagePart}; - use mithril_common::test::double::Dummy; use super::*; diff --git a/mithril-client-cli/src/commands/cardano_db/shared_steps.rs b/mithril-client-cli/src/commands/cardano_db/shared_steps.rs index f80b3fbfa2f..0f33645c96f 100644 --- a/mithril-client-cli/src/commands/cardano_db/shared_steps.rs +++ b/mithril-client-cli/src/commands/cardano_db/shared_steps.rs @@ -240,9 +240,9 @@ pub fn log_download_information( mod tests { use mithril_client::{ MithrilCertificateMetadata, - common::{CardanoDbBeacon, ProtocolMessagePartKey, SignedEntityType}, + common::{CardanoDbBeacon, ProtocolMessagePartKey, SignedEntityType, test::Dummy}, }; - use mithril_common::test::{TempDir, double::Dummy}; + use mithril_common::test::TempDir; use crate::utils::ProgressOutputType; diff --git a/mithril-client/Cargo.toml b/mithril-client/Cargo.toml index 6b6a68dd30d..82cb76c7f2d 100644 --- a/mithril-client/Cargo.toml +++ b/mithril-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mithril-client" -version = "0.12.31" +version = "0.12.32" description = "Mithril client library" authors = { workspace = true } edition = { workspace = true } diff --git a/mithril-client/src/type_alias.rs b/mithril-client/src/type_alias.rs index aa616139b48..1f0d8162029 100644 --- a/mithril-client/src/type_alias.rs +++ b/mithril-client/src/type_alias.rs @@ -77,4 +77,11 @@ pub mod common { pub use mithril_common::messages::{ AncillaryMessagePart, DigestsMessagePart, ImmutablesMessagePart, }; + + /// Test utilities. + /// + /// ⚠ Do not use in production code ⚠ + pub mod test { + pub use mithril_common::test::double::Dummy; + } }