matrix-sdk: VERSION isn't used for the wasm target
parent
c5a0803068
commit
0d12a5571f
|
@ -44,6 +44,7 @@ use crate::Endpoint;
|
||||||
use crate::identifiers::DeviceId;
|
use crate::identifiers::DeviceId;
|
||||||
|
|
||||||
use crate::api;
|
use crate::api;
|
||||||
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
use crate::VERSION;
|
use crate::VERSION;
|
||||||
use crate::{Error, EventEmitter, Result};
|
use crate::{Error, EventEmitter, Result};
|
||||||
use matrix_sdk_base::BaseClient;
|
use matrix_sdk_base::BaseClient;
|
||||||
|
|
|
@ -53,4 +53,5 @@ pub use client::{Client, ClientConfig, SyncSettings};
|
||||||
pub use error::{Error, Result};
|
pub use error::{Error, Result};
|
||||||
pub use request_builder::{MessagesRequestBuilder, RoomBuilder};
|
pub use request_builder::{MessagesRequestBuilder, RoomBuilder};
|
||||||
|
|
||||||
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
pub(crate) const VERSION: &str = env!("CARGO_PKG_VERSION");
|
pub(crate) const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||||
|
|
Loading…
Reference in New Issue