Skip to main content

matrix_sdk_ffi/
lib.rs

1#![recursion_limit = "256"]
2#![allow(unused_qualifications, clippy::new_without_default)]
3// Needed because uniffi macros contain empty lines after docs.
4#![allow(clippy::empty_line_after_doc_comments)]
5// Needed because uniffi generates a big const array.
6#![allow(clippy::large_const_arrays)]
7
8mod authentication;
9mod chunk_iterator;
10mod client;
11mod client_builder;
12mod content_scanner;
13mod encryption;
14mod error;
15mod event;
16mod helpers;
17mod identity_status_change;
18mod live_locations_observer;
19mod notification;
20mod notification_settings;
21mod password_strength;
22mod platform;
23mod qr_code;
24mod room;
25mod room_alias;
26mod room_directory_search;
27mod room_list;
28mod room_member;
29mod room_preview;
30mod ruma;
31mod runtime;
32#[cfg(feature = "experimental-search")]
33mod search_service;
34mod session_verification;
35mod spaces;
36mod store;
37mod sync_service;
38mod sync_v2;
39mod task_handle;
40mod timeline;
41mod utd;
42mod utils;
43mod widget;
44
45use matrix_sdk::ruma::events::room::message::RoomMessageEventContentWithoutRelation;
46
47use self::{
48    error::ClientError,
49    ruma::{Mentions, RoomMessageEventContentWithoutRelationExt},
50    task_handle::TaskHandle,
51};
52
53uniffi::include_scaffolding!("api");
54
55#[matrix_sdk_ffi_macros::export]
56fn sdk_git_sha() -> String {
57    env!("VERGEN_GIT_SHA").to_owned()
58}