Skip to content

Commit eab1ce6

Browse files
committed
chore(client-lib): deprecate aggregator_client module
As it will be entirely reworked to use the shared `mithril-aggregator-client` crate. Note: this depreciation generate more than 360 warnings, as such it was chosen to add globals `allow(deprecated)` instead of adding them everywhere.
1 parent 95a6824 commit eab1ce6

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

mithril-client/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![warn(missing_docs)]
22
#![cfg_attr(docsrs, feature(doc_cfg))]
3+
// TODO: Remove this allow once migration from deprecated AggregatorClient types is complete
4+
#![allow(deprecated)]
35

46
//! Define all the tooling necessary to manipulate Mithril certified types from a
57
//! [Mithril Aggregator](https://mithril.network/rust-doc/mithril_aggregator/index.html).
@@ -120,6 +122,7 @@ macro_rules! cfg_fs_unstable {
120122
}
121123
}
122124

125+
#[deprecated(since = "0.12.33", note = "Will be removed soon")]
123126
pub mod aggregator_client;
124127
pub mod cardano_database_client;
125128
pub mod cardano_stake_distribution_client;

mithril-client/tests/cardano_db_snapshot_list_get_download_verify.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// TODO: Remove this allow once migration from deprecated AggregatorClient types is complete
2+
#![allow(deprecated)]
3+
14
mod extensions;
25

36
use std::sync::Arc;

mithril-client/tests/cardano_transaction_proof.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// TODO: Remove this allow once migration from deprecated AggregatorClient types is complete
2+
#![allow(deprecated)]
3+
14
mod extensions;
25

36
use mithril_client::{ClientBuilder, MessageBuilder, aggregator_client::AggregatorRequest};

mithril-client/tests/certificate_get_list.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// TODO: Remove this allow once migration from deprecated AggregatorClient types is complete
2+
#![allow(deprecated)]
3+
14
mod extensions;
25

36
use mithril_client::{ClientBuilder, aggregator_client::AggregatorRequest};

mithril-client/tests/mithril_stake_distribution_list_get_show_verify.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// TODO: Remove this allow once migration from deprecated AggregatorClient types is complete
2+
#![allow(deprecated)]
3+
14
mod extensions;
25

36
use mithril_client::{ClientBuilder, MessageBuilder, aggregator_client::AggregatorRequest};

mithril-client/tests/snapshot_list_get_show_download_verify.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// TODO: Remove this allow once migration from deprecated AggregatorClient types is complete
2+
#![allow(deprecated)]
3+
14
mod extensions;
25

36
use std::sync::Arc;

0 commit comments

Comments
 (0)