# 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-api"
version = "0.23.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Types for the endpoints in the Matrix client-server API."
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

[features]
client = []
compat-empty-string-null = []
compat-get-3pids = []
compat-unset-avatar = []
compat-upload-signatures = []
server = []
unstable-msc2448 = []
unstable-msc2654 = []
unstable-msc2666 = ["ruma-common/unstable-msc2666"]
unstable-msc3488 = []
unstable-msc3814 = []
unstable-msc3983 = []
unstable-msc4108 = ["ruma-common/unstable-msc4108"]
unstable-msc4121 = []
unstable-msc4140 = ["ruma-common/unstable-msc4140"]
unstable-msc4143 = []
unstable-msc4186 = ["ruma-common/unstable-msc4186"]
unstable-msc4195 = ["unstable-msc4143"]
unstable-msc4293 = ["ruma-events/unstable-msc4293"]
unstable-msc4306 = []
unstable-msc4308 = []
unstable-msc4388 = []
unstable-msc4439 = []

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

[[test]]
name = "it"
path = "tests/it/main.rs"

[dependencies.as_variant]
version = "1.2.0"

[dependencies.assign]
version = "1.1.1"

[dependencies.bytes]
version = "1.11.1"

[dependencies.http]
version = "1.1.0"

[dependencies.js_int]
version = "0.2.2"
features = ["serde"]

[dependencies.js_option]
version = "0.2.0"

[dependencies.maplit]
version = "1.0.2"

[dependencies.ruma-common]
version = "0.18.0"
features = ["api"]

[dependencies.ruma-events]
version = "0.33.0"

[dependencies.serde]
version = "1.0.164"
features = ["derive"]

[dependencies.serde_html_form]
version = "0.4.0"

[dependencies.serde_json]
version = "1.0.87"

[dependencies.thiserror]
version = "2.0.0"

[dependencies.url]
version = "2.5.0"
features = ["serde"]

[dependencies.web-time]
version = "1.1.0"

[dev-dependencies.assert_matches2]
version = "0.1.0"

[lints.clippy]
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"
manual_let_else = "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"
unnecessary_semicolon = "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)",
]
