Commit Graph

116 Commits

Author SHA1 Message Date
a7a8ceedeb cargo fmt + clippy
Some checks failed
Build and test / build (push) Failing after 1m5s
Build and test / check (push) Failing after 1m17s
Build and test / test (push) Failing after 1m21s
Build and test / docs (push) Failing after 1m13s
2025-12-08 13:28:45 +09:00
7ce0d68021 commands: extend parser errors 2025-12-08 13:28:17 +09:00
b5cb4677ee Remove a few unused type aliases
Some checks failed
Build and test / check (push) Failing after 59s
Build and test / build (push) Failing after 1m1s
Build and test / test (push) Failing after 1m26s
Build and test / docs (push) Failing after 1m49s
2025-12-08 13:11:09 +09:00
38faf99de7 *_tokenizer: add module doccomment 2025-12-08 13:10:31 +09:00
69f252bad8 commands: force external users to interact with requests and responses through Command trait
Some checks failed
Build and test / check (push) Failing after 42s
Build and test / build (push) Failing after 1m0s
Build and test / docs (push) Failing after 1m7s
Build and test / test (push) Failing after 1m45s
2025-12-08 13:07:11 +09:00
c177c089a3 commands: add command executor directly on Command trait
Some checks failed
Build and test / check (push) Failing after 41s
Build and test / build (push) Failing after 59s
Build and test / test (push) Has been cancelled
Build and test / docs (push) Has been cancelled
2025-12-08 13:05:30 +09:00
d964e7857b examples/mpd-client: add some code
Some checks failed
Build and test / docs (push) Has been cancelled
Build and test / test (push) Has been cancelled
Build and test / build (push) Has been cancelled
Build and test / check (push) Has been cancelled
2025-12-08 13:00:46 +09:00
8430592bee commands: strip lifetimes 2025-12-08 12:30:19 +09:00
78cfc09d60 commands: add newline at end of all command serializers 2025-12-08 12:13:05 +09:00
a7b764ad0f client: init
Some checks failed
Build and test / check (push) Failing after 59s
Build and test / build (push) Failing after 1m7s
Build and test / test (push) Failing after 1m50s
Build and test / docs (push) Failing after 1m5s
2025-12-08 05:32:49 +09:00
f3e6fe13df MpdError: impl thiserror 2025-12-08 05:31:43 +09:00
4f8f5db620 make ResponseParserError self-contained, impl thiserror 2025-12-08 05:31:13 +09:00
1e39640508 common/types: flatten to types
Some checks failed
Build and test / check (push) Failing after 47s
Build and test / build (push) Failing after 1m3s
Build and test / docs (push) Failing after 1m1s
Build and test / test (push) Failing after 1m48s
2025-12-08 04:14:32 +09:00
b388bc727b commands: document module 2025-12-08 04:07:20 +09:00
9f859e1df1 response: add some notes about the errors
Some checks failed
Build and test / build (push) Successful in 1m7s
Build and test / check (push) Failing after 1m8s
Build and test / docs (push) Successful in 1m11s
Build and test / test (push) Successful in 2m20s
2025-12-08 01:46:14 +09:00
4bb5702eba cargo clippy
Some checks failed
Build and test / build (push) Successful in 1m3s
Build and test / check (push) Failing after 1m24s
Build and test / test (push) Successful in 1m50s
Build and test / docs (push) Successful in 1m14s
2025-12-08 01:08:58 +09:00
955fdbcff1 commands/stickernamestypes: add missing derive for response 2025-12-08 01:05:24 +09:00
322c8c8fc3 commands/listplaylist: add note about format
Some checks failed
Build and test / build (push) Successful in 1m10s
Build and test / check (push) Failing after 1m25s
Build and test / test (push) Successful in 1m36s
Build and test / docs (push) Successful in 1m17s
2025-12-08 01:03:23 +09:00
93afaf1bde commands/seekcur: fix parser 2025-12-08 01:03:11 +09:00
c915c67f08 commands: fix request enum conversion for unmount 2025-12-08 00:52:27 +09:00
813ffac614 flake.lock: bump inputs
Some checks failed
Build and test / check (push) Failing after 58s
Build and test / build (push) Successful in 1m29s
Build and test / test (push) Successful in 1m49s
Build and test / docs (push) Successful in 1m12s
2025-12-08 00:45:53 +09:00
b0bc2752cc commands: add response types for multiple commands
Some checks failed
Build and test / build (push) Successful in 1m3s
Build and test / test (push) Has been cancelled
Build and test / docs (push) Has been cancelled
Build and test / check (push) Has been cancelled
2025-12-08 00:44:37 +09:00
07e9161137 commands/currentsong: implement response parser
Some checks failed
Build and test / build (push) Successful in 1m6s
Build and test / check (push) Failing after 1m23s
Build and test / test (push) Successful in 1m38s
Build and test / docs (push) Successful in 2m4s
2025-12-08 00:29:00 +09:00
f2977f1ba9 commands/listplaylistinfo: fix response type 2025-12-08 00:28:38 +09:00
b0b4134829 commands: split Command trait into req + res parts
Some checks failed
Build and test / check (push) Failing after 1m2s
Build and test / build (push) Successful in 1m8s
Build and test / test (push) Successful in 2m23s
Build and test / docs (push) Successful in 1m24s
2025-12-08 00:07:37 +09:00
c1dbdd4644 cargo fmt
Some checks failed
Build and test / check (push) Failing after 58s
Build and test / build (push) Successful in 1m6s
Build and test / docs (push) Successful in 1m10s
Build and test / test (push) Successful in 2m19s
2025-12-07 21:40:50 +09:00
64c94d6e89 commands/listplaylistinfo: add response type
Some checks failed
Build and test / check (push) Failing after 44s
Build and test / build (push) Successful in 1m0s
Build and test / docs (push) Successful in 1m25s
Build and test / test (push) Successful in 3m0s
2025-12-07 21:33:01 +09:00
4d11df5ad1 commands: implement all database selection responses 2025-12-07 21:24:49 +09:00
0cacbe2229 common/types: add db selection print types 2025-12-07 21:22:35 +09:00
7bbe1c4ced types/tag: make orderable 2025-12-07 21:22:34 +09:00
83918fd432 commands/listplaylists: implement 2025-12-07 21:22:33 +09:00
07e1c76aa9 commands: parse to Self::Request
Some checks failed
Build and test / check (push) Failing after 43s
Build and test / build (push) Successful in 1m2s
Build and test / docs (push) Successful in 1m12s
Build and test / test (push) Successful in 1m44s
2025-12-05 22:00:11 +09:00
d84e653db2 filter: export all types from inner module 2025-12-05 21:00:01 +09:00
7834bbd956 common: don't expose types directly 2025-12-05 20:59:19 +09:00
249ffb2a36 commands: add docs for Command trait
Some checks failed
Build and test / check (push) Failing after 58s
Build and test / build (push) Successful in 1m10s
Build and test / docs (push) Successful in 1m10s
Build and test / test (push) Successful in 2m53s
2025-11-25 05:28:58 +09:00
fdd4880d05 common/types: add better alias for MountPath 2025-11-25 05:28:19 +09:00
9ca6544057 common/types: add better alias for AudioOutputId 2025-11-25 05:28:19 +09:00
e5f70ca87a common/types: add type for ChannelName 2025-11-25 05:28:19 +09:00
b03f60c985 common/types: add better alias for PlaylistVersion 2025-11-25 05:28:19 +09:00
b22016e970 common/types: add type for Sort 2025-11-25 03:56:01 +09:00
65c7798d01 response_tokenizer: rewrite
This commit contains a rewrite of the response tokenizer, which
introduces lazy parsing of the response, handling of binary data, some
tests, as well as just generally more robustness against errors.
2025-11-24 23:53:03 +09:00
5188809327 commands: fix request de/serialization for list 2025-11-24 22:00:42 +09:00
a4276a2caa commands: remove some fixed TODOs 2025-11-24 21:59:42 +09:00
7b27a650a1 commands: split response tokenizer into separate file 2025-11-24 19:28:28 +09:00
062dbcafb8 filter: implement basic parser 2025-11-24 19:25:01 +09:00
57a6b0a3ee common/types: case insensitive tags 2025-11-24 19:25:00 +09:00
b5fbaadca2 Implement a proper request tokenizer 2025-11-24 19:25:00 +09:00
3bd7aaaad2 WIP: serialize requests 2025-11-21 18:50:58 +09:00
8aba3d8859 filter: implement fmt::Display 2025-11-21 18:50:58 +09:00
e4ece7d6b2 common/types: implement serialization helpers for Tag 2025-11-21 18:50:58 +09:00