From 0d12a5571fd25c8e3c2b3157e20f175cdabec93c Mon Sep 17 00:00:00 2001 From: stoically Date: Wed, 13 May 2020 15:02:28 +0200 Subject: [PATCH] matrix-sdk: VERSION isn't used for the wasm target --- matrix_sdk/src/client.rs | 1 + matrix_sdk/src/lib.rs | 1 + 2 files changed, 2 insertions(+) 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");