c4b77dd198
Change rust edition from 2021 -> 2024
Build and test / build (push) Successful in 54s
Build and test / check (push) Successful in 55s
Build and test / docs (push) Successful in 1m24s
Build and test / test (push) Failing after 2m9s
2025-12-15 09:52:24 +09:00
93366593c7
Allow a few more highlevel types to be nullable
2024-08-03 15:38:46 +02:00
650507e680
add support for parsing playlists as events + more
...
This brings several changes with it:
- `Mpv::get_property` now returns `Option`s in case `data` is
nonexistent. There could be cases where this is different from
`MpvDataType::Null` and `MpvDataType::MinusOne`.
- `MpvError` now implements `PartialEq`
2024-05-04 18:45:32 +02:00
e044246cba
fixup: fmt + clippy
2024-05-04 00:23:02 +02:00
cb0921144d
rework error messages
2024-05-03 22:29:25 +02:00
7eec34ce00
split property parsing from event parsing:
...
Build and test / build (pull_request) Successful in 1m55s
Build and test / check (pull_request) Successful in 1m52s
Build and test / docs (pull_request) Successful in 2m21s
Build and test / test (pull_request) Successful in 4m9s
Build and test / check (push) Successful in 1m55s
Build and test / build (push) Successful in 1m57s
Build and test / docs (push) Successful in 2m43s
Build and test / test (push) Successful in 5m33s
High-level properties are now optional, considering there are about a
thousand of them to parse. The high-level properties are a few chosen
ones that I suspect might be useful for most people, with catch-all enum
variants for the less common ones.
2024-05-02 21:16:23 +02:00
f5ca2ebde9
add more tests, fix event/command response race condition
Build and test / check (pull_request) Successful in 1m56s
Build and test / build (pull_request) Successful in 1m57s
Build and test / docs (pull_request) Successful in 2m30s
Build and test / test (pull_request) Successful in 4m0s
Build and test / check (push) Successful in 1m55s
Build and test / build (push) Successful in 1m56s
Build and test / docs (push) Successful in 3m2s
Build and test / test (push) Successful in 3m59s
2024-05-01 23:45:42 +02:00
64bf743c6c
clean: add docstrings, move a few things around
2024-05-01 22:22:45 +02:00
3be7b2bda6
cargo fmt + clippy
Build and test / check (push) Successful in 1m55s
Build and test / build (push) Successful in 1m59s
Build and test / test (push) Successful in 2m30s
2024-04-30 02:13:57 +02:00
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
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