#![doc(html_favicon_url = "https://ruma.dev/favicon.ico")]
#![doc(html_logo_url = "https://ruma.dev/images/logo.png")]
#![recursion_limit = "1024"]
#![warn(missing_docs)]
#![allow(clippy::derive_partial_eq_without_eq)]
#![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"
);
extern crate self as ruma_common;
#[cfg(feature = "api")]
pub mod api;
pub mod authentication;
#[cfg(feature = "canonical-json")]
pub mod canonical_json;
pub mod directory;
pub mod encryption;
pub mod http_headers;
mod identifiers;
pub mod media;
mod percent_encode;
pub mod power_levels;
pub mod presence;
pub mod push;
pub mod room;
pub mod serde;
pub mod space;
pub mod thirdparty;
mod time;
pub mod to_device;
use std::fmt;
#[cfg(feature = "canonical-json")]
pub use self::canonical_json::{CanonicalJsonError, CanonicalJsonObject, CanonicalJsonValue};
pub use self::{
identifiers::*,
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 ruma_macros;
pub use serde;
pub use serde_html_form;
pub use serde_json;
}