ruma-client 0.18.0

A Matrix client library.
Documentation
# 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 = "2024"
rust-version = "1.89"
name = "ruma-client"
version = "0.18.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Matrix client library."
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-client"

[package.metadata.docs.rs]
all-features = true

[package.metadata.cargo-machete]
ignored = ["hyper"]

[features]
client-api = ["ruma/client-api-c"]
hyper = [
    "dep:http-body-util",
    "dep:hyper",
    "dep:hyper-util",
]
hyper-native-tls = [
    "hyper",
    "dep:hyper-tls",
]
hyper-rustls = [
    "hyper",
    "dep:hyper-rustls",
]
reqwest = ["dep:reqwest"]
reqwest-native-tls = [
    "reqwest",
    "reqwest?/native-tls",
]
reqwest-native-tls-no-alpn = [
    "reqwest",
    "reqwest?/native-tls-no-alpn",
]
reqwest-native-tls-vendored = [
    "reqwest",
    "reqwest?/native-tls-vendored",
]
reqwest-native-tls-vendored-no-alpn = [
    "reqwest",
    "reqwest?/native-tls-vendored-no-alpn",
]
reqwest-rustls = [
    "reqwest",
    "reqwest?/rustls",
]
reqwest-rustls-no-provider = [
    "reqwest",
    "reqwest?/rustls-no-provider",
]

[lib]
name = "ruma_client"
path = "src/lib.rs"

[dependencies.as_variant]
version = "1.2.0"

[dependencies.assign]
version = "1.1.1"

[dependencies.async-stream]
version = "0.3.0"

[dependencies.bytes]
version = "1.0.1"

[dependencies.futures-core]
version = "0.3.8"

[dependencies.http]
version = "1.1.0"

[dependencies.http-body-util]
version = "0.1.1"
optional = true

[dependencies.hyper]
version = "1.3.1"
features = [
    "client",
    "http1",
    "http2",
]
optional = true

[dependencies.hyper-rustls]
version = "0.27.1"
optional = true
default-features = false

[dependencies.hyper-tls]
version = "0.6.0"
optional = true

[dependencies.hyper-util]
version = "0.1.3"
features = [
    "client-legacy",
    "http1",
    "http2",
    "tokio",
]
optional = true

[dependencies.reqwest]
version = "0.13"
optional = true
default-features = false

[dependencies.ruma]
version = "0.15.0"
features = ["api"]

[dependencies.tracing]
version = "0.1.30"
features = ["std"]
default-features = false

[dev-dependencies.ruma]
version = "0.15.0"
features = ["client-api-c"]

[dev-dependencies.tokio-stream]
version = "0.1.8"

[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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    'cfg(ruma_identifiers_storage, values("Arc"))',
    "cfg(ruma_unstable_exhaustive_types)",
]