Compare commits

..

3 Commits

2 changed files with 13 additions and 4 deletions

View File

@ -14,14 +14,14 @@ rust-version = "1.75"
serde_json = "1.0.104"
log = "0.4.19"
serde = { version = "1.0.197", features = ["derive"] }
tokio = { version = "1.37.0", features = ["sync", "macros", "rt", "net"] }
# TODO: downscale features once implementation is stable
tokio = { version = "1.37.0", features = ["full"] }
tokio-util = { version = "0.7.10", features = ["codec"] }
futures = "0.3.30"
[dev-dependencies]
env_logger = "0.10.0"
test-log = "0.2.15"
tokio = { version = "1.37.0", features = ["rt-multi-thread", "time"] }
[lib]
doctest = false
doctest = false

View File

@ -291,9 +291,18 @@ pub struct Mpv {
command_sender: tokio::sync::mpsc::Sender<(MpvIpcCommand, oneshot::Sender<MpvIpcResponse>)>,
}
// impl Drop for Mpv {
// fn drop(&mut self) {
// self.disconnect();
// }
// }
impl fmt::Debug for Mpv {
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt.debug_struct("Mpv").finish()
// TODO:
fmt.debug_struct("Mpv")
.field("name", &"TODO: name")
.finish()
}
}