matrix-sdk: VERSION isn't used for the wasm target

master
stoically 2020-05-13 15:02:28 +02:00
parent c5a0803068
commit 0d12a5571f
No known key found for this signature in database
GPG Key ID: 3026ED2F90EE0DE9
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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");