diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index da3c741c..8d76ef22 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -44,6 +44,7 @@ use crate::Endpoint; use crate::identifiers::DeviceId; use crate::api; +#[cfg(not(target_arch = "wasm32"))] use crate::VERSION; use crate::{Error, EventEmitter, Result}; use matrix_sdk_base::BaseClient; diff --git a/matrix_sdk/src/lib.rs b/matrix_sdk/src/lib.rs index d8246fe5..9fca0ab2 100644 --- a/matrix_sdk/src/lib.rs +++ b/matrix_sdk/src/lib.rs @@ -53,4 +53,5 @@ pub use client::{Client, ClientConfig, SyncSettings}; pub use error::{Error, Result}; pub use request_builder::{MessagesRequestBuilder, RoomBuilder}; +#[cfg(not(target_arch = "wasm32"))] pub(crate) const VERSION: &str = env!("CARGO_PKG_VERSION");