diff --git a/soroban-sdk/src/env.rs b/soroban-sdk/src/env.rs index f520ab262..962b8b6b7 100644 --- a/soroban-sdk/src/env.rs +++ b/soroban-sdk/src/env.rs @@ -75,15 +75,6 @@ pub mod internal { } } -// Testutils from the environment are pub here, and then pub re-exported out of -// the SDK in the crate::testutils mod. -#[cfg(any(test, feature = "testutils"))] -pub mod testutils { - pub use super::internal::budget::Budget; - pub use super::internal::LedgerInfo; -} - -pub use internal::meta; pub use internal::xdr; pub use internal::Compare; pub use internal::ConversionError; diff --git a/soroban-sdk/src/lib.rs b/soroban-sdk/src/lib.rs index 935bf5b04..30d512da3 100644 --- a/soroban-sdk/src/lib.rs +++ b/soroban-sdk/src/lib.rs @@ -104,7 +104,7 @@ mod alloc; #[export_name = "_"] fn __link_sections() { #[link_section = "contractenvmetav0"] - static __ENV_META_XDR: [u8; env::meta::XDR.len()] = env::meta::XDR; + static __ENV_META_XDR: [u8; env::internal::meta::XDR.len()] = env::internal::meta::XDR; soroban_sdk_macros::contractmetabuiltin!(); } diff --git a/soroban-sdk/src/storage.rs b/soroban-sdk/src/storage.rs index 040740bdb..d9c22caf9 100644 --- a/soroban-sdk/src/storage.rs +++ b/soroban-sdk/src/storage.rs @@ -483,6 +483,3 @@ mod testutils { map } } -#[cfg(any(test, feature = "testutils"))] -#[cfg_attr(feature = "docs", doc(cfg(feature = "testutils")))] -pub use testutils::*;