[package]
name = "obws"
version = "0.6.0"
authors = ["Dominik Nakamura <dnaka91@gmail.com>"]
edition = "2018"
license = "MIT"
readme = "README.md"
description = "The obws (obvious) remote control library for OBS."
homepage = "https://github.com/dnaka91/obws"
repository = "https://github.com/dnaka91/obws"
categories = ["api-bindings", "web-programming"]
keywords = ["async", "obs", "obs-websocket", "remote-control", "tokio"]

[package.metadata.docs.rs]
features = ["events", "tls"]

[dependencies]
async-stream = { version = "0.3.0", optional = true }
base64 = "0.13.0"
bitflags = "1.2.1"
chrono = { version = "0.4.19", default-features = false, features = ["std"] }
either = { version = "1.6.1", features = ["serde"] }
futures-util = { version = "0.3.13", features = ["sink"] }
log = "0.4.14"
rgb = { version = "0.8.25", default-features = false }
semver = { version = "0.11.0", features = ["serde"] }
serde = { version = "1.0.123", features = ["derive"] }
serde_json = "1.0.64"
serde_with = "1.6.4"
sha2 = "0.9.3"
thiserror = "1.0.24"
tokio = { version = "1.2.0", features = ["net", "rt", "sync"] }
tokio-tungstenite = "0.14.0"

[dev-dependencies]
anyhow = "1.0.38"
dotenv = "0.15.0"
pretty_env_logger = "0.4.0"
serde_test = "1.0.123"
tokio = { version = "1.2.0", features = ["fs", "macros", "rt-multi-thread", "time"] }

[features]
default = []
test-integration = []
events = ["async-stream"]
tls = ["tokio-tungstenite/rustls-tls"]

[[example]]
name = "events"
required-features = ["events"]

[[test]]
name = "media_control"
required-features = ["events"]

[[test]]
name = "recording"
required-features = ["events"]
