[package] name = "ruma-common" version = "0.8.0" description = "Common types for other ruma crates." homepage = "https://www.ruma.io/" keywords = ["matrix", "chat", "messaging", "ruma"] license = "MIT" readme = "README.md" repository = "https://github.com/ruma/ruma" edition = "2018" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [features] # These feature gates exist only for the tests. Disabling them results in a # compile error. default = ["client", "server"] client = [] server = [] api = ["http", "thiserror"] compat = ["ruma-macros/compat", "ruma-identifiers-validation/compat"] events = ["indoc", "thiserror"] markdown = ["pulldown-cmark"] rand = ["rand_crate", "uuid"] unstable-exhaustive-types = [] unstable-pdu = [] unstable-pre-spec = [] unstable-msc1767 = [] unstable-msc2448 = [] unstable-msc2675 = [] unstable-msc2676 = [] unstable-msc2677 = [] unstable-msc3246 = ["unstable-msc3551", "thiserror"] unstable-msc3488 = ["unstable-msc1767"] unstable-msc3551 = ["unstable-msc1767"] unstable-msc3552 = ["unstable-msc1767", "unstable-msc3551"] unstable-msc3553 = ["unstable-msc3552"] [dependencies] base64 = "0.13.0" bytes = "1.0.1" criterion = { version = "0.3.3", optional = true } either = { version = "1.6.1", optional = true } form_urlencoded = "1.0.0" http = { version = "0.2.2", optional = true } indexmap = { version = "1.6.2", features = ["serde-1"] } indoc = { version = "1.0", optional = true } itoa = "1.0.1" js_int = { version = "0.2.0", features = ["serde"] } percent-encoding = "2.1.0" pulldown-cmark = { version = "0.8", default-features = false, optional = true } rand_crate = { package = "rand", version = "0.8.3", optional = true } ruma-identifiers-validation = { version = "0.7.0", path = "../ruma-identifiers-validation", default-features = false } ruma-macros = { version = "=0.1.0", path = "../ruma-macros" } serde = { version = "1.0.118", features = ["derive"] } serde_json = { version = "1.0.64", features = ["raw_value"] } thiserror = { version = "1.0.26", optional = true } tracing = "0.1.25" url = "2.2.2" uuid = { version = "0.8.2", optional = true, features = ["v4"] } wildmatch = "2.0.0" [dev-dependencies] assign = "1.1.1" http = "0.2.2" maplit = "1.0.2" matches = "0.1.8" trybuild = "1.0.42" [[bench]] name = "event_deserialize" harness = false