1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
#![recursion_limit = "1024"]
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#[cfg(not(all(feature = "client", feature = "server")))]
compile_error!(
"ruma_common's `client` and `server` Cargo features only exist as a workaround are not meant to be disabled"
);
#[cfg(feature = "rand")]
extern crate rand_crate as rand;
extern crate self as ruma_common;
#[cfg(feature = "api")]
pub mod api;
pub mod authentication;
pub mod directory;
pub mod encryption;
#[cfg(feature = "events")]
pub mod events;
mod identifiers;
pub mod power_levels;
pub mod presence;
pub mod push;
pub mod receipt;
pub mod room;
pub mod serde;
pub mod thirdparty;
mod time;
pub mod to_device;
use std::fmt;
pub use identifiers::*;
pub use time::{MilliSecondsSinceUnixEpoch, SecondsSinceUnixEpoch};
#[doc(hidden)]
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct PrivOwnedStr(Box<str>);
impl fmt::Debug for PrivOwnedStr {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.0.fmt(f)
}
}
#[doc(hidden)]
pub mod exports {
#[cfg(feature = "api")]
pub use bytes;
#[cfg(feature = "api")]
pub use http;
pub use percent_encoding;
pub use ruma_macros;
pub use serde;
pub use serde_json;
}