ably-chat-rs 0.2.0

Unofficial, ergonomic Rust client for the Ably Chat REST API (v4). Not affiliated with or endorsed by Ably.
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.88"
name = "ably-chat-rs"
version = "0.2.0"
authors = ["Andrii Radyk <andrii@natter.co>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial, ergonomic Rust client for the Ably Chat REST API (v4). Not affiliated with or endorsed by Ably."
homepage = "https://github.com/AnderEnder/ably-chat-rs"
documentation = "https://docs.rs/ably-chat-rs"
readme = "README.md"
keywords = [
    "ably",
    "chat",
    "rest",
    "client",
    "sdk",
]
categories = [
    "api-bindings",
    "web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/AnderEnder/ably-chat-rs"

[package.metadata.docs.rs]
features = [
    "chrono",
    "token-issuance",
]

[features]
capabilities = []
chrono = ["dep:chrono"]
default = [
    "rustls",
    "capabilities",
    "jwt",
]
jwt = ["dep:jsonwebtoken"]
native-tls = [
    "reqwest/native-tls",
    "ably-chat-openapi/native-tls",
    "ably-auth-openapi?/native-tls",
]
rustls = [
    "reqwest/rustls",
    "ably-chat-openapi/rustls",
    "ably-auth-openapi?/rustls",
]
token-issuance = ["dep:ably-auth-openapi"]

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

[[test]]
name = "client_reactions"
path = "tests/client_reactions.rs"

[[test]]
name = "history"
path = "tests/history.rs"

[[test]]
name = "live_capability_scoping"
path = "tests/live_capability_scoping.rs"

[[test]]
name = "messages_delete"
path = "tests/messages_delete.rs"

[[test]]
name = "messages_get"
path = "tests/messages_get.rs"

[[test]]
name = "messages_send"
path = "tests/messages_send.rs"

[[test]]
name = "messages_update"
path = "tests/messages_update.rs"

[[test]]
name = "occupancy"
path = "tests/occupancy.rs"

[[test]]
name = "reactions_delete"
path = "tests/reactions_delete.rs"

[[test]]
name = "reactions_send"
path = "tests/reactions_send.rs"

[[test]]
name = "send_sync"
path = "tests/send_sync.rs"

[[test]]
name = "token_issuance"
path = "tests/token_issuance.rs"

[dependencies.ably-auth-openapi]
version = "0.2.0"
optional = true
default-features = false

[dependencies.ably-chat-openapi]
version = "0.2.0"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"
features = ["std"]
optional = true
default-features = false

[dependencies.futures]
version = "0.3"

[dependencies.jsonwebtoken]
version = "9"
optional = true

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.urlencoding]
version = "2"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.wiremock]
version = "0.6"