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 user_id;
42mod utd;
43mod utils;
44mod widget;
45
46use matrix_sdk::ruma::events::room::message::RoomMessageEventContentWithoutRelation;
47
48use self::{
49    error::ClientError,
50    ruma::{Mentions, RoomMessageEventContentWithoutRelationExt},
51    task_handle::TaskHandle,
52};
53
54uniffi::include_scaffolding!("api");
55
56#[matrix_sdk_ffi_macros::export]
57fn sdk_git_sha() -> String {
58    env!("VERGEN_GIT_SHA").to_owned()
59}