# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.75" name = "ruma" version = "0.11.1" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Types and traits for working with the Matrix protocol." homepage = "https://ruma.dev/" readme = "README.md" keywords = [ "matrix", "chat", "messaging", "ruma", ] categories = [ "api-bindings", "web-programming", ] license = "MIT" repository = "https://github.com/ruma/ruma" [package.metadata.docs.rs] all-features = true [lib] name = "ruma" path = "src/lib.rs" [dependencies.assign] version = "1.1.1" [dependencies.js_int] version = "0.2.2" [dependencies.js_option] version = "0.1.1" [dependencies.ruma-appservice-api] version = "0.11.0" optional = true [dependencies.ruma-client] version = "0.14.0" optional = true [dependencies.ruma-client-api] version = "0.19.0" optional = true [dependencies.ruma-common] version = "0.14.1" [dependencies.ruma-events] version = "0.29.1" optional = true [dependencies.ruma-federation-api] version = "0.10.0" optional = true [dependencies.ruma-html] version = "0.3.0" optional = true [dependencies.ruma-identity-service-api] version = "0.10.0" optional = true [dependencies.ruma-push-gateway-api] version = "0.10.0" optional = true [dependencies.ruma-server-util] version = "0.4.0" optional = true [dependencies.ruma-signatures] version = "0.16.0" optional = true [dependencies.ruma-state-res] version = "0.12.0" optional = true [dependencies.web-time] version = "1.1.0" [dev-dependencies.serde] version = "1.0.164" features = ["derive"] [features] __ci = [ "full", "compat-upload-signatures", "__unstable-mscs", "unstable-unspecified", ] __unstable-mscs = [ "unstable-msc1767", "unstable-msc2409", "unstable-msc2448", "unstable-msc2654", "unstable-msc2666", "unstable-msc2747", "unstable-msc2867", "unstable-msc2870", "unstable-msc2965", "unstable-msc2967", "unstable-msc3061", "unstable-msc3202", "unstable-msc3245", "unstable-msc3245-v1-compat", "unstable-msc3246", "unstable-msc3266", "unstable-msc3381", "unstable-msc3401", "unstable-msc3488", "unstable-msc3489", "unstable-msc3551", "unstable-msc3552", "unstable-msc3553", "unstable-msc3554", "unstable-msc3575", "unstable-msc3618", "unstable-msc3723", "unstable-msc3814", "unstable-msc3843", "unstable-msc3927", "unstable-msc3930", "unstable-msc3931", "unstable-msc3932", "unstable-msc3954", "unstable-msc3955", "unstable-msc3956", "unstable-msc3983", "unstable-msc4075", "unstable-msc4095", "unstable-msc4108", "unstable-msc4121", "unstable-msc4125", "unstable-msc4140", "unstable-msc4186", ] api = ["ruma-common/api"] appservice-api = [ "appservice-api-c", "appservice-api-s", ] appservice-api-c = [ "api", "events", "dep:ruma-appservice-api", "ruma-appservice-api?/client", ] appservice-api-s = [ "api", "events", "dep:ruma-appservice-api", "ruma-appservice-api?/server", ] canonical-json = [ "ruma-common/canonical-json", "ruma-events?/canonical-json", ] client = ["dep:ruma-client"] client-api = [ "client-api-c", "client-api-s", ] client-api-c = [ "api", "events", "dep:ruma-client-api", "ruma-client-api?/client", ] client-api-s = [ "api", "events", "dep:ruma-client-api", "ruma-client-api?/server", ] client-ext-client-api = [ "client", "ruma-client?/client-api", ] client-hyper = [ "client", "ruma-client?/hyper", ] client-hyper-native-tls = [ "client", "ruma-client?/hyper-native-tls", ] client-reqwest = [ "client", "ruma-client?/reqwest", ] client-reqwest-native-tls = [ "client", "ruma-client?/reqwest-native-tls", ] client-reqwest-native-tls-alpn = [ "client", "ruma-client?/reqwest-native-tls-alpn", ] client-reqwest-native-tls-vendored = [ "client", "ruma-client?/reqwest-native-tls-vendored", ] client-reqwest-rustls-manual-roots = [ "client", "ruma-client?/reqwest-rustls-manual-roots", ] client-reqwest-rustls-native-roots = [ "client", "ruma-client?/reqwest-rustls-native-roots", ] client-reqwest-rustls-webpki-roots = [ "client", "ruma-client?/reqwest-rustls-webpki-roots", ] compat = [ "compat-server-signing-key-version", "compat-user-id", "compat-empty-string-null", "compat-null", "compat-optional", "compat-unset-avatar", "compat-get-3pids", "compat-signature-id", "compat-tag-info", ] compat-arbitrary-length-ids = ["ruma-common/compat-arbitrary-length-ids"] compat-empty-string-null = [ "ruma-common/compat-empty-string-null", "ruma-client-api?/compat-empty-string-null", "ruma-events?/compat-empty-string-null", "ruma-federation-api?/compat-empty-string-null", ] compat-encrypted-stickers = ["ruma-events?/compat-encrypted-stickers"] compat-get-3pids = ["ruma-client-api?/compat-get-3pids"] compat-null = ["ruma-common/compat-null"] compat-optional = [ "ruma-common/compat-optional", "ruma-events?/compat-optional", ] compat-server-signing-key-version = ["ruma-common/compat-server-signing-key-version"] compat-signature-id = ["ruma-signatures?/compat-signature-id"] compat-tag-info = ["ruma-events?/compat-tag-info"] compat-unset-avatar = ["ruma-client-api?/compat-unset-avatar"] compat-upload-signatures = ["ruma-client-api?/compat-upload-signatures"] compat-user-id = ["ruma-common/compat-user-id"] events = ["dep:ruma-events"] federation-api = [ "federation-api-c", "federation-api-s", ] federation-api-c = [ "api", "signatures", "dep:ruma-federation-api", "ruma-federation-api?/client", ] federation-api-s = [ "api", "signatures", "dep:ruma-federation-api", "ruma-federation-api?/server", ] full = [ "api", "client", "client-ext-client-api", "events", "signatures", "state-res", "appservice-api", "client-api", "federation-api", "identity-service-api", "push-gateway-api", "rand", "markdown", "html", "html-matrix", ] html = [ "dep:ruma-html", "ruma-events?/html", ] html-matrix = [ "html", "ruma-html/matrix", ] identity-service-api = [ "identity-service-api-c", "identity-service-api-s", ] identity-service-api-c = [ "api", "dep:ruma-identity-service-api", "ruma-identity-service-api?/client", ] identity-service-api-s = [ "api", "dep:ruma-identity-service-api", "ruma-identity-service-api?/server", ] js = ["ruma-common/js"] markdown = ["ruma-events?/markdown"] push-gateway-api = [ "push-gateway-api-c", "push-gateway-api-s", ] push-gateway-api-c = [ "api", "dep:ruma-push-gateway-api", "ruma-push-gateway-api?/client", ] push-gateway-api-s = [ "api", "dep:ruma-push-gateway-api", "ruma-push-gateway-api?/server", ] rand = ["ruma-common/rand"] ring-compat = [ "dep:ruma-signatures", "ruma-signatures?/ring-compat", ] server-util = ["dep:ruma-server-util"] signatures = [ "dep:ruma-signatures", "canonical-json", ] state-res = ["dep:ruma-state-res"] unstable-exhaustive-types = [ "ruma-common/unstable-exhaustive-types", "ruma-appservice-api?/unstable-exhaustive-types", "ruma-client-api?/unstable-exhaustive-types", "ruma-federation-api?/unstable-exhaustive-types", "ruma-identity-service-api?/unstable-exhaustive-types", "ruma-push-gateway-api?/unstable-exhaustive-types", "ruma-signatures?/unstable-exhaustive-types", "ruma-state-res?/unstable-exhaustive-types", "ruma-events?/unstable-exhaustive-types", ] unstable-extensible-events = [ "unstable-msc3246", "unstable-msc3488", "unstable-msc3553", "unstable-msc3954", "unstable-msc3955", ] unstable-msc1767 = ["ruma-events?/unstable-msc1767"] unstable-msc2409 = ["ruma-appservice-api?/unstable-msc2409"] unstable-msc2448 = [ "ruma-client-api?/unstable-msc2448", "ruma-events?/unstable-msc2448", "ruma-federation-api?/unstable-msc2448", ] unstable-msc2654 = ["ruma-client-api?/unstable-msc2654"] unstable-msc2666 = ["ruma-client-api?/unstable-msc2666"] unstable-msc2747 = ["ruma-events?/unstable-msc2747"] unstable-msc2867 = ["ruma-events?/unstable-msc2867"] unstable-msc2870 = ["ruma-common/unstable-msc2870"] unstable-msc2965 = ["ruma-client-api?/unstable-msc2965"] unstable-msc2967 = ["ruma-client-api?/unstable-msc2967"] unstable-msc3061 = ["ruma-events?/unstable-msc3061"] unstable-msc3202 = ["ruma-appservice-api?/unstable-msc3202"] unstable-msc3245 = ["ruma-events?/unstable-msc3245"] unstable-msc3245-v1-compat = ["ruma-events?/unstable-msc3245-v1-compat"] unstable-msc3246 = ["ruma-events?/unstable-msc3246"] unstable-msc3266 = ["ruma-client-api?/unstable-msc3266"] unstable-msc3381 = ["ruma-events?/unstable-msc3381"] unstable-msc3401 = ["ruma-events?/unstable-msc3401"] unstable-msc3488 = [ "ruma-client-api?/unstable-msc3488", "ruma-events?/unstable-msc3488", ] unstable-msc3489 = ["ruma-events?/unstable-msc3489"] unstable-msc3551 = ["ruma-events?/unstable-msc3551"] unstable-msc3552 = ["ruma-events?/unstable-msc3552"] unstable-msc3553 = ["ruma-events?/unstable-msc3553"] unstable-msc3554 = ["ruma-events?/unstable-msc3554"] unstable-msc3575 = ["ruma-client-api?/unstable-msc3575"] unstable-msc3618 = ["ruma-federation-api?/unstable-msc3618"] unstable-msc3723 = ["ruma-federation-api?/unstable-msc3723"] unstable-msc3814 = ["ruma-client-api?/unstable-msc3814"] unstable-msc3843 = [ "ruma-client-api?/unstable-msc3843", "ruma-federation-api?/unstable-msc3843", ] unstable-msc3927 = ["ruma-events?/unstable-msc3927"] unstable-msc3930 = ["ruma-common/unstable-msc3930"] unstable-msc3931 = ["ruma-common/unstable-msc3931"] unstable-msc3932 = ["ruma-common/unstable-msc3932"] unstable-msc3954 = ["ruma-events?/unstable-msc3954"] unstable-msc3955 = ["ruma-events?/unstable-msc3955"] unstable-msc3956 = ["ruma-events?/unstable-msc3956"] unstable-msc3983 = ["ruma-client-api?/unstable-msc3983"] unstable-msc4075 = ["ruma-events?/unstable-msc4075"] unstable-msc4095 = ["ruma-events?/unstable-msc4095"] unstable-msc4108 = ["ruma-client-api?/unstable-msc4108"] unstable-msc4121 = ["ruma-client-api?/unstable-msc4121"] unstable-msc4125 = ["ruma-federation-api?/unstable-msc4125"] unstable-msc4140 = ["ruma-client-api?/unstable-msc4140"] unstable-msc4186 = ["ruma-client-api?/unstable-msc4186"] unstable-pdu = ["ruma-events?/unstable-pdu"] unstable-unspecified = [ "ruma-common/unstable-unspecified", "ruma-federation-api?/unstable-unspecified", "ruma-push-gateway-api?/unstable-unspecified", ] [lints.clippy] arc_with_non_send_sync = "allow" branches_sharing_code = "warn" cloned_instead_of_copied = "warn" dbg_macro = "warn" disallowed_types = "warn" empty_line_after_outer_attr = "warn" exhaustive_enums = "warn" exhaustive_structs = "warn" inefficient_to_string = "warn" macro_use_imports = "warn" map_flatten = "warn" missing_enforced_import_renames = "warn" mod_module_files = "warn" mut_mut = "warn" new_without_default = "allow" nonstandard_macro_braces = "warn" semicolon_if_nothing_returned = "warn" str_to_string = "warn" todo = "warn" unreadable_literal = "warn" unseparated_literal_suffix = "warn" wildcard_imports = "warn" [lints.rust] semicolon_in_expressions_from_macros = "warn" unreachable_pub = "warn" unused_import_braces = "warn" unused_qualifications = "warn" [lints.rust.rust_2018_idioms] level = "warn" priority = -1