diff --git a/rent-collector/src/lib.rs b/rent-collector/src/lib.rs index 486307a3b..b638a39eb 100644 --- a/rent-collector/src/lib.rs +++ b/rent-collector/src/lib.rs @@ -1,6 +1,10 @@ //! Calculate and collect rent from accounts. #![cfg_attr(docsrs, feature(doc_auto_cfg))] #![cfg_attr(feature = "frozen-abi", feature(min_specialization))] +#![deprecated( + since = "2.3.0", + note = "Use Rent directly, or solana_runtime::rent_collector" +)] use { solana_account::{AccountSharedData, ReadableAccount, WritableAccount}, diff --git a/sdk/src/lib.rs b/sdk/src/lib.rs index ef2e169f2..de8bdae5f 100644 --- a/sdk/src/lib.rs +++ b/sdk/src/lib.rs @@ -172,6 +172,7 @@ pub mod program_utils; pub mod pubkey; #[cfg(feature = "full")] #[deprecated(since = "2.3.0", note = "Use `solana_rent_collector` crate instead")] +#[allow(deprecated)] pub mod rent_collector { pub use solana_rent_collector::*; }