From 1aa9db9df8656079bcca41db0e166f5cf23b2dee Mon Sep 17 00:00:00 2001 From: Jon C Date: Thu, 7 Aug 2025 16:40:35 -0400 Subject: [PATCH 1/2] rent-collector: Deprecate the crate (#262) #### Problem As noted in #226, the rent collector crate and struct are no longer needed, and with https://github.com/anza-xyz/agave/pull/7297, will no longer be used. #### Summary of changes Mark the crate as deprecated, so that we can backport and release the change, then delete the crate entirely. (cherry picked from commit 0cabe5d3c8bfbfd875a08663392cbb9238b87140) --- rent-collector/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) 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}, From d23d0614461b6ee11a76c691a917ec9959881dab Mon Sep 17 00:00:00 2001 From: Jon C Date: Wed, 13 Aug 2025 15:26:16 +0200 Subject: [PATCH 2/2] Add allow(deprecated) to re-export in the sdk --- sdk/src/lib.rs | 1 + 1 file changed, 1 insertion(+) 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::*; }