Bump to 1.2.0, using newest dependencies

This commit is contained in:
Jonas Frei 2022-07-10 15:34:14 +02:00
parent 1c9e32671e
commit f499d730e8
2 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "mpvipc"
version = "1.1.9"
version = "1.2.0"
authors = ["Jonas Frei <freijon@pm.me>"]
description = "A small library which provides bindings to control existing mpv instances through sockets."
license = "GPL-3.0"
@ -10,9 +10,9 @@ documentation = "https://docs.rs/mpvipc/"
edition = "2018"
[dependencies]
serde = "1.0.1"
serde_json = "1.0.0"
log = "0.4.6"
serde = "1.0.138"
serde_json = "1.0.82"
log = "0.4.17"
[dev-dependencies]
env_logger = "0.6.1"
env_logger = "0.9.0"

View File

@ -4,7 +4,7 @@ A small library which provides bindings to control existing mpv instances throug
To make use of this library, please make sure mpv is started with the following option:
`
$ mpv --input-ipc-server=/tmp/mpvsocket --idle ...
$ mpv --input-ipc-server=/tmp/mpv.sock --idle ...
`
## Dependencies
@ -22,19 +22,19 @@ You can use this package with cargo.
Make sure mpv is started with the following option:
`
$ mpv --input-ipc-server=/tmp/mpvsocket --idle
$ mpv --input-ipc-server=/tmp/mpv.sock --idle
`
Here is a small code example which connects to the socket /tmp/mpvsocket and toggles playback.
Here is a small code example which connects to the socket /tmp/mpv.sock and toggles playback.
```
```rust
extern crate mpvipc;
use mpvipc::*;
use std::sync::mpsc::channel;
fn main() {
let mpv = Mpv::connect("/tmp/mpvsocket").unwrap();
let mpv = Mpv::connect("/tmp/mpv.sock").unwrap();
let paused: bool = mpv.get_property("pause").unwrap();
mpv.set_property("pause", !paused).expect("Error pausing");
}
@ -44,4 +44,4 @@ For a more extensive example and proof of concept, see project [mpvc](https://gi
## Bugs / Ideas
Check out the [Issue Tracker](https://gitlab.com/mpv-ipc/mpvipc/issues)
Check out the [Issue Tracker](https://gitlab.com/mpv-ipc/mpvipc/issues)