[package]
edition = "2024"
rust-version = "1.88"
name = "hinge-rs"
version = "0.1.1"
build = false
include = [
"Cargo.toml",
"Cargo.lock",
"README.md",
"CHANGELOG.md",
"LICENSE-*",
"src/**",
"openapi/hinge-api.openapi.json",
"docs/api/openapi.json",
"docs/api/index.html",
"docs/api/versions.json",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial typed Hinge API client for Rust, with REST, Sendbird chat, and generated OpenAPI docs."
homepage = "https://f0rr0.github.io/hinge-rs/"
documentation = "https://docs.rs/hinge-rs"
readme = "README.md"
keywords = [
"hinge",
"api",
"sendbird",
"client",
"async",
]
categories = [
"api-bindings",
"asynchronous",
"web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/f0rr0/hinge-rs"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["rustls"]
json-schema = ["dep:schemars"]
native-tls = [
"reqwest/native-tls",
"tokio-tungstenite/native-tls",
]
openapi = ["json-schema"]
rustls = [
"reqwest/rustls",
"tokio-tungstenite/rustls-tls-webpki-roots",
]
[lib]
name = "hinge_rs"
path = "src/lib.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.futures-util]
version = "0.3"
[dependencies.log]
version = "0.4"
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"query",
"gzip",
"brotli",
"deflate",
"http2",
]
default-features = false
[dependencies.schemars]
version = "1.2"
features = [
"chrono04",
"uuid1",
]
optional = true
[dependencies.secrecy]
version = "0.10"
features = ["serde"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_path_to_error]
version = "0.1"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.52"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
]
[dependencies.tokio-tungstenite]
version = "0.29"
features = [
"connect",
"handshake",
]
default-features = false
[dependencies.uuid]
version = "1.18"
features = [
"v4",
"serde",
]