diff --git a/bindings/core/src/lib.rs b/bindings/core/src/lib.rs index f4fbfce8bb..d7dc366cfa 100644 --- a/bindings/core/src/lib.rs +++ b/bindings/core/src/lib.rs @@ -80,6 +80,7 @@ impl WalletOptions { self } + #[cfg(feature = "storage")] pub fn with_storage_path(mut self, storage_path: impl Into>) -> Self { self.storage_path = storage_path.into(); self diff --git a/bindings/core/tests/combined.rs b/bindings/core/tests/combined.rs index ffe7fe20d3..68ae893166 100644 --- a/bindings/core/tests/combined.rs +++ b/bindings/core/tests/combined.rs @@ -22,6 +22,7 @@ use iota_sdk_bindings_core::{ }; use pretty_assertions::assert_eq; +#[cfg(feature = "storage")] #[tokio::test] async fn create_wallet() -> Result<()> { let storage_path = "test-storage/create_wallet"; @@ -59,6 +60,7 @@ async fn create_wallet() -> Result<()> { Ok(()) } +#[cfg(feature = "storage")] #[tokio::test] async fn client_from_wallet() -> Result<()> { let storage_path = "test-storage/client_from_wallet"; @@ -100,6 +102,7 @@ async fn client_from_wallet() -> Result<()> { } // TODO reenable +// #[cfg(feature = "storage")] // #[tokio::test] // async fn build_and_sign_block() -> Result<()> { // let storage_path = "test-storage/build_and_sign_block";