Commit Graph

27 Commits

Author SHA1 Message Date
Oystein Kristoffer Tveit da3e344be2 rework error messages 2024-05-03 16:11:31 +02:00
Oystein Kristoffer Tveit f5ca2ebde9
add more tests, fix event/command response race condition
Build and test / check (pull_request) Successful in 1m56s Details
Build and test / build (pull_request) Successful in 1m57s Details
Build and test / docs (pull_request) Successful in 2m30s Details
Build and test / test (pull_request) Successful in 4m0s Details
Build and test / check (push) Successful in 1m55s Details
Build and test / build (push) Successful in 1m56s Details
Build and test / docs (push) Successful in 3m2s Details
Build and test / test (push) Successful in 3m59s Details
2024-05-01 23:45:42 +02:00
Oystein Kristoffer Tveit aacde5df12
Create event stream 2024-04-30 02:07:04 +02:00
Oystein Kristoffer Tveit c039eafa1e
Add some tests 2024-04-19 01:02:24 +02:00
Oystein Kristoffer Tveit deb45a4570
Make entire project async
This moves all communication with Mpv's unix socket into another tokio
task, and uses message passing through clonable mpsc channels to receive
commands to execute, and to send responses.
2024-04-19 00:59:22 +02:00
Oystein Kristoffer Tveit f5c9674b78
Misc: refactor + serde serialization derives
- Split content into more files
- Refactor TypeHandler impls
- Add serialization traits to public structs/enums
2024-04-16 23:11:19 +02:00
Jonas Frei fe6b191a3b Updated crates, switched edition to 2021, version update 2023-08-03 12:55:41 +02:00
Jonas Frei c5550739f4 Bump package version 2022-07-21 18:21:58 +02:00
Jonas Frei 442f121b2e Using _isize_ instead of _usize_ for observation as per mpv documentation 2022-07-10 20:59:52 +02:00
Jonas Frei f499d730e8 Bump to 1.2.0, using newest dependencies 2022-07-10 15:34:14 +02:00
Jonas Frei ea941433b0 Publishing newest master, bumping version 2020-10-24 07:01:14 +02:00
Jonas Frei cb5ad88544 Added list of supported commands as Enum. Cleaned up comments. Pushed version to 1.1.8 2019-06-24 20:11:58 +02:00
Jonas Frei 5b28c95a0a Included observation ID in PropertyChange event 2019-06-20 06:00:44 +02:00
Jonas Frei d5ecc48b1d Changed e-Mail address and removed wildcard dependency 2019-06-19 20:53:51 +02:00
Jonas Frei 30b1e4c190 Increased version to 1.1.6 2019-06-19 20:46:27 +02:00
Emmanuel Gil Peyrot 8f105eb41f Add a logging system, using the log crate 2019-06-18 18:34:23 +02:00
Emmanuel Gil Peyrot 244a34057f Switch to edition 2018 2019-06-18 17:34:20 +02:00
Jonas Frei 05e02c886c Changed from GitHub to GitLab 2017-07-17 20:31:03 +02:00
Jonas Frei 6133122536 Switch from Github to GitLab 2017-07-14 01:21:09 +02:00
Jonas Frei c808c2171c Changed listen functions not to use Sender,Reader but to return a Event-Result. Other minor improvements. 2017-06-17 13:03:27 +02:00
Jonas Frei 1916f60dd6 Added the PropertyChange event. Implemented all variantes of MpvDataType. Documented event_listen 2017-06-06 23:08:27 +02:00
Jonas Frei ed9f35ba5d Added Mpv type, added Event enum, removed Command trait 2017-06-01 19:30:52 +02:00
Jonas Frei 56b3e79022 Added documentation link 2017-05-31 19:37:17 +02:00
Jonas Frei f6941840cb Bump to 1.1.1 2017-05-31 19:33:15 +02:00
Jonas Frei ea0e60097d Keeps the socket open for the entire lifetime of the Mpv struct. Now using channels to inform about new events (listen command). Added Readme 2017-05-29 17:54:12 +02:00
Jonas Frei caa746575c Changed licence synthax 2017-05-22 19:00:29 +02:00
Jonas Frei 7fffe9b1cd Initial commit 2017-05-22 18:31:20 +02:00