From 45953a268ca822449b63f2a2bea870fb4b606dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 6 Oct 2020 11:41:18 +0200 Subject: [PATCH] matrix-sdk: Mention that the key import/export methods don't work on WASM. --- matrix_sdk/src/client.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index ab3a5891..15279756 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -1799,7 +1799,10 @@ impl Client { /// ``` #[cfg(feature = "encryption")] #[cfg(not(target_arch = "wasm32"))] - #[cfg_attr(feature = "docs", doc(cfg(encryption)))] + #[cfg_attr( + feature = "docs", + doc(cfg(all(encryption, not(target_arch = "wasm32")))) + )] pub async fn export_keys( &self, path: PathBuf, @@ -1849,7 +1852,10 @@ impl Client { /// ``` #[cfg(feature = "encryption")] #[cfg(not(target_arch = "wasm32"))] - #[cfg_attr(feature = "docs", doc(cfg(encryption)))] + #[cfg_attr( + feature = "docs", + doc(cfg(all(encryption, not(target_arch = "wasm32")))) + )] pub async fn import_keys(&self, path: PathBuf, passphrase: &str) -> Result<()> { let olm = self .base_client