Deprecate families::command::workload builder
Because re-exports can't be deprecated, create a
`CommandTransactionBuilder` type that uses the command txn builder from
its new location and deprecate the type so that anyone using the
`CommandTransactionBuilder` from this location will receive a warning.
@@ -31,6 +31,9 @@ use crate::protocol::{
use crate::protos::IntoBytes;
use crate::workload::{BatchWorkload, ExpectedBatchResult, TransactionWorkload};
+#[cfg(feature = "family-command-transaction-builder")]
+use super::transaction_builder::CommandTransactionBuilder as CmdTransactionBuilder;
+
pub use crate::families::command::workload::command_iter::CommandGeneratingIter;
/// A transaction workload that generates signed `command` transactions.
@@ -158,3 +161,10 @@ impl BatchWorkload for CommandBatchWorkload {
))
}
}
+
+#[cfg(feature = "family-command-transaction-builder")]
+#[deprecated(
+ since = "0.4.1",
+ note = "Please use families::command::CommandTransactionBuilder"
+)]
+pub type CommandTransactionBuilder = CmdTransactionBuilder;
