# 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.85"
name = "oxicast"
version = "0.0.1"
build = "build.rs"
exclude = [
    "website/",
    "docs/",
    ".github/",
    "deny.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async Google Cast (Chromecast) client for Rust, built on tokio"
homepage = "https://github.com/denniskribl/oxicast"
documentation = "https://docs.rs/oxicast"
readme = "README.md"
keywords = [
    "chromecast",
    "cast",
    "google-cast",
    "media",
    "tokio",
]
categories = [
    "multimedia",
    "network-programming",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/denniskribl/oxicast"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["discovery"]
discovery = ["dep:mdns-sd"]
serve = ["dep:axum"]
testing = []

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

[[example]]
name = "custom_namespace"
path = "examples/custom_namespace.rs"

[[example]]
name = "device_test"
path = "examples/device_test.rs"

[[example]]
name = "discover_and_play"
path = "examples/discover_and_play.rs"

[[example]]
name = "event_monitor"
path = "examples/event_monitor.rs"

[[example]]
name = "media_control"
path = "examples/media_control.rs"

[[test]]
name = "mock_device"
path = "tests/mock_device.rs"
required-features = ["testing"]

[dependencies.axum]
version = "0.8"
features = [
    "tokio",
    "http1",
]
optional = true
default-features = false

[dependencies.bytes]
version = "1"

[dependencies.mdns-sd]
version = "0.19"
optional = true

[dependencies.prost]
version = "0.14"

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "logging",
    "tls12",
]
default-features = false

[dependencies.rustls-native-certs]
version = "0.8"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "net",
    "rt",
    "sync",
    "time",
    "macros",
    "io-util",
    "fs",
]

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.tokio-util]
version = "0.7"
features = [
    "rt",
    "io",
]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[build-dependencies.prost-build]
version = "0.14"
