matrix-sdk: Mention that the key import/export methods don't work on WASM.
parent
84039ad7aa
commit
45953a268c
|
@ -1799,7 +1799,10 @@ impl Client {
|
||||||
/// ```
|
/// ```
|
||||||
#[cfg(feature = "encryption")]
|
#[cfg(feature = "encryption")]
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[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(
|
pub async fn export_keys(
|
||||||
&self,
|
&self,
|
||||||
path: PathBuf,
|
path: PathBuf,
|
||||||
|
@ -1849,7 +1852,10 @@ impl Client {
|
||||||
/// ```
|
/// ```
|
||||||
#[cfg(feature = "encryption")]
|
#[cfg(feature = "encryption")]
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[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<()> {
|
pub async fn import_keys(&self, path: PathBuf, passphrase: &str) -> Result<()> {
|
||||||
let olm = self
|
let olm = self
|
||||||
.base_client
|
.base_client
|
||||||
|
|
Loading…
Reference in New Issue