redseat-api 0.3.0

Rust client for Redseat media servers
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.90"
name = "redseat-api"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client for Redseat media servers"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/neckaros/redseat-api"

[features]
default = [
    "http",
    "desktop-auth",
]
desktop-auth = [
    "http",
    "dep:tokio",
    "dep:sha2",
    "dep:getrandom",
]
http = [
    "dep:reqwest",
    "dep:futures-timer",
]
open-browser = [
    "desktop-auth",
    "dep:webbrowser",
]

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

[[example]]
name = "sign_in"
path = "examples/sign_in.rs"
required-features = [
    "http",
    "desktop-auth",
]

[dependencies.async-trait]
version = "0.1.89"

[dependencies.base64]
version = "0.22"

[dependencies.futures-util]
version = "0.3.31"
features = [
    "std",
    "async-await-macro",
]
default-features = false

[dependencies.redseat-crypto]
version = "0.2.1"

[dependencies.reqwest]
version = "0.13.5"
features = [
    "rustls",
    "http2",
    "charset",
    "system-proxy",
    "stream",
]
optional = true
default-features = false

[dependencies.rs-plugin-common-interfaces]
version = "0.45.0"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3.41"
features = [
    "std",
    "parsing",
]
default-features = false

[dependencies.url]
version = "2.5"

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

[dev-dependencies.tokio]
version = "1.47"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "io-util",
    "time",
    "sync",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures-timer]
version = "3.0.3"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.getrandom]
version = "0.3.4"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.sha2]
version = "0.10.9"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.47"
features = [
    "net",
    "io-util",
    "time",
    "sync",
    "macros",
]
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.webbrowser]
version = "1.0"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.futures-timer]
version = "3.0.3"
features = ["wasm-bindgen"]
optional = true