[package]
edition = "2024"
rust-version = "1.89"
name = "synapse-admin-api"
version = "0.10.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Types for the endpoints in the synapse admin 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/synapse-admin-api"
[features]
client = []
server = []
shared-secret-registration-mac = [
"dep:hex",
"dep:hmac",
"dep:sha1",
]
[lib]
name = "synapse_admin_api"
path = "src/lib.rs"
[dependencies.hex]
version = "0.4.3"
optional = true
[dependencies.hmac]
version = "0.12.1"
optional = true
[dependencies.ruma]
version = "0.15.0"
features = [
"api",
"events",
]
[dependencies.serde]
version = "1.0.118"
features = ["derive"]
[dependencies.sha1]
version = "0.10.1"
optional = true
[dev-dependencies.serde_json]
version = "1.0.61"
[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"
literal_string_with_formatting_args = "allow"
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_unstable_exhaustive_types)"]