| 1 | // Copyright 2023 The Matrix.org Foundation C.I.C. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | #![cfg_attr(target_family = "wasm", allow(clippy::arc_with_non_send_sync))] |
| 16 | #![cfg_attr(docsrs, feature(doc_cfg))] |
| 17 | |
| 18 | pub use eyeball_im; |
| 19 | use ruma::html::HtmlSanitizerMode; |
| 20 | |
| 21 | pub mod encryption_sync_service; |
| 22 | pub mod notification_client; |
| 23 | pub mod room_list_service; |
| 24 | pub mod spaces; |
| 25 | pub mod sync_service; |
| 26 | pub mod timeline; |
| 27 | pub mod unable_to_decrypt_hook; |
| 28 | |
| 29 | pub use self::{room_list_service::RoomListService, timeline::Timeline}; |
| 30 | |
| 31 | /// The default sanitizer mode used when sanitizing HTML. |
| 32 | const DEFAULT_SANITIZER_MODE: HtmlSanitizerMode = HtmlSanitizerMode::Compat; |
| 33 | |
| 34 | #[cfg(test)] |
| 35 | matrix_sdk_test_utils::init_tracing_for_tests!(); |
| 36 | |
| 37 | #[cfg(feature = "uniffi")] |
| 38 | uniffi::setup_scaffolding!(); |