From ce98b9bac32db074cf87b50e23412f07b605a10c Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Wed, 26 Feb 2025 10:26:06 -0800 Subject: [PATCH] Move RuntimeConfig out of SVM (#5077) --- runtime/src/lib.rs | 4 +--- {svm => runtime}/src/runtime_config.rs | 0 svm/src/lib.rs | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) rename {svm => runtime}/src/runtime_config.rs (100%) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 3db89bbb08f276..b5cd9ddf5d3171 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -22,6 +22,7 @@ pub mod prioritization_fee; pub mod prioritization_fee_cache; pub mod rent_collector; pub mod root_bank_cache; +pub mod runtime_config; pub mod serde_snapshot; pub mod snapshot_archive_info; pub mod snapshot_bank_utils; @@ -48,6 +49,3 @@ extern crate serde_derive; #[cfg_attr(feature = "frozen-abi", macro_use)] #[cfg(feature = "frozen-abi")] extern crate solana_frozen_abi_macro; - -// Don't make crates import the SVM if all they need is this module. -pub use solana_svm::runtime_config; diff --git a/svm/src/runtime_config.rs b/runtime/src/runtime_config.rs similarity index 100% rename from svm/src/runtime_config.rs rename to runtime/src/runtime_config.rs diff --git a/svm/src/lib.rs b/svm/src/lib.rs index 7a42e3ce4b10f8..21901a9652f846 100644 --- a/svm/src/lib.rs +++ b/svm/src/lib.rs @@ -7,7 +7,6 @@ pub mod message_processor; pub mod nonce_info; pub mod program_loader; pub mod rollback_accounts; -pub mod runtime_config; pub mod transaction_account_state_info; pub mod transaction_commit_result; pub mod transaction_error_metrics;