[package] authors = [ "Jimmy Cuadra ", "Jonas Platte ", ] categories = ["api-bindings", "web-programming"] description = "A Matrix client library." edition = "2018" homepage = "https://www.ruma.io/" keywords = ["matrix", "chat", "messaging", "ruma"] license = "MIT" name = "ruma-client" readme = "README.md" repository = "https://github.com/ruma/ruma" version = "0.5.0-alpha.2" [features] client-api = ["ruma-client-api"] # HTTP clients hyper-native-tls = ["hyper", "hyper-tls"] hyper-rustls = ["hyper", "hyper-rustls-crate"] isahc = ["isahc-crate", "futures-lite"] reqwest-native-tls = ["reqwest", "reqwest/native-tls"] reqwest-native-tls-vendored = ["reqwest", "reqwest/native-tls-vendored"] reqwest-rustls-manual-roots = ["reqwest", "reqwest/rustls-tls-manual-roots"] reqwest-rustls-webpki-roots = ["reqwest", "reqwest/rustls-tls-webpki-roots"] reqwest-rustls-native-roots = ["reqwest", "reqwest/rustls-tls-native-roots"] [dependencies] assign = "1.1.1" async-stream = "0.3.0" async-trait = "0.1.50" bytes = "1.0.1" futures-core = "0.3.8" futures-lite = { version = "1.11.3", optional = true } http = "0.2.2" hyper = { version = "0.14.2", optional = true, features = ["client", "http1", "http2", "tcp"] } hyper-tls = { version = "0.5.0", optional = true } hyper-rustls-crate = { package = "hyper-rustls", version = "0.22.1", optional = true, default-features = false } isahc-crate = { package = "isahc", version = "1.3.1", optional = true } reqwest = { version = "0.11.3", optional = true, default-features = false } ruma-api = { version = "=0.17.0-alpha.4", path = "../ruma-api" } ruma-client-api = { version = "=0.10.0-alpha.3", path = "../ruma-client-api", optional = true, features = ["client"] } ruma-common = { version = "0.5.0", path = "../ruma-common" } ruma-events = { version = "=0.22.0-alpha.3", path = "../ruma-events" } ruma-identifiers = { version = "0.19.0", path = "../ruma-identifiers" } ruma-serde = { version = "0.3.1", path = "../ruma-serde" } serde = { version = "1.0.118", features = ["derive"] } serde_json = "1.0.61" [dev-dependencies] anyhow = "1.0.37" ruma = { version = "0.0.3", path = "../ruma", features = ["client-api-c"] } tokio = { version = "1.0.1", features = ["macros", "rt"] } tokio-stream = { version = "0.1.1", default-features = false } [[example]] name = "hello_world" required-features = ["client-api", "hyper-native-tls"] [[example]] name = "hello_isahc" required-features = ["client-api", "isahc"] [[example]] name = "message_log" required-features = ["client-api", "hyper-native-tls"]