[package]
edition = "2024"
rust-version = "1.88.0"
name = "nowhear"
version = "0.2.0"
authors = ["Akiomi Kamakura <akiomik@gmail.com>"]
build = false
include = [
"examples",
"src",
"CHANGELOG.md",
"LICENSE",
"README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform media playback information watcher"
readme = "README.md"
keywords = [
"media",
"music",
"playback",
"mpris",
"now-playing",
]
categories = [
"multimedia",
"os",
]
license = "Apache-2.0"
repository = "https://github.com/akiomik/nowhear"
[lib]
name = "nowhear"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "stream"
path = "examples/stream.rs"
[dependencies.futures]
version = "0.3"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"macros",
"process",
"rt",
"rt-multi-thread",
"sync",
"time",
]
[dependencies.tokio-stream]
version = "0.1"
[target.'cfg(target_os = "linux")'.dependencies.zbus]
version = "5"
features = ["tokio"]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.serde]
version = "1"
features = ["derive"]
[target.'cfg(target_os = "macos")'.dependencies.serde_json]
version = "1"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
"Media_Control",
"Storage_Streams",
"Foundation",
"Foundation_Collections",
]
[lints.clippy]
absolute_paths = "warn"
multiple_crate_versions = "allow"
panic = "warn"
unwrap_used = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1