Commit Graph

124 Commits

Author SHA1 Message Date
oysteikt 11e2b9c8b7 Clean up misc. module doccomments 2026-01-09 13:25:44 +09:00
oysteikt f852aae240 filter: document misc 2026-01-09 13:25:43 +09:00
oysteikt 3c83b654de .gitea/workflows: don't error on clippy warnings 2026-01-09 13:25:43 +09:00
oysteikt 6eb44081a9 .gitea/workflows: don't run with all features 2026-01-09 13:25:43 +09:00
oysteikt 0d7c104afe commands: use new error variants for various commands 2026-01-09 13:25:42 +09:00
oysteikt 212095da40 Preallocate a few more response parsers 2026-01-09 13:25:42 +09:00
oysteikt 36a8a345c8 commands: add and fix variants for RequestParserError 2026-01-09 13:25:42 +09:00
oysteikt 279908ec34 filter: flatten module 2026-01-09 13:25:42 +09:00
oysteikt bc1f47c500 cargo fmt + clippy 2026-01-09 13:25:41 +09:00
oysteikt 98f22fce74 commands: extend parser errors 2026-01-09 13:25:41 +09:00
oysteikt b0b6156a94 Remove a few unused type aliases 2026-01-09 13:25:41 +09:00
oysteikt 50091b0f0c *_tokenizer: add module doccomment 2026-01-09 13:25:41 +09:00
oysteikt dd023fb486 commands: force external users to interact with requests and responses through Command trait 2026-01-09 13:25:40 +09:00
oysteikt f1249a1691 commands: add command executor directly on Command trait 2026-01-09 13:25:40 +09:00
oysteikt 1f651ef852 examples/mpd-client: add some code 2026-01-09 13:25:40 +09:00
oysteikt e59d04e830 commands: strip lifetimes 2026-01-09 13:25:39 +09:00
oysteikt 46803e0a30 commands: add newline at end of all command serializers 2026-01-09 13:25:39 +09:00
oysteikt 9aa3150a67 client: init 2026-01-09 13:25:39 +09:00
oysteikt 7a85cd7a6e MpdError: impl thiserror 2026-01-09 13:25:38 +09:00
oysteikt cb1cf47ff8 make ResponseParserError self-contained, impl thiserror 2026-01-09 13:25:38 +09:00
oysteikt 8f8e69ae56 common/types: flatten to types 2026-01-09 13:25:38 +09:00
oysteikt 373241f21a commands: document module 2026-01-09 13:25:38 +09:00
oysteikt 193487c29f response: add some notes about the errors 2026-01-09 13:25:38 +09:00
oysteikt dbf1de898c cargo clippy 2026-01-09 13:25:37 +09:00
oysteikt 2ea3a053d2 commands/stickernamestypes: add missing derive for response 2026-01-09 13:25:37 +09:00
oysteikt 55725e47eb commands/listplaylist: add note about format 2026-01-09 13:25:37 +09:00
oysteikt a3a438686d commands/seekcur: fix parser 2026-01-09 13:25:36 +09:00
oysteikt 91b127f072 commands: fix request enum conversion for unmount 2026-01-09 13:25:36 +09:00
oysteikt f1ca132b07 flake.lock: bump inputs 2026-01-09 13:25:36 +09:00
oysteikt 80c36d033d commands: add response types for multiple commands 2026-01-09 13:25:36 +09:00
oysteikt 7132a526c5 commands/currentsong: implement response parser 2026-01-09 13:25:35 +09:00
oysteikt 5307d847f0 commands/listplaylistinfo: fix response type 2026-01-09 13:25:35 +09:00
oysteikt ffb1911b89 commands: split Command trait into req + res parts 2026-01-09 13:25:35 +09:00
oysteikt c43fa3cfdb cargo fmt 2026-01-09 13:25:35 +09:00
oysteikt 9a0846f35c commands/listplaylistinfo: add response type 2026-01-09 13:25:34 +09:00
oysteikt bafe8e2d74 commands: implement all database selection responses 2026-01-09 13:25:34 +09:00
oysteikt a2e1dc6e3c common/types: add db selection print types 2026-01-09 13:25:34 +09:00
oysteikt 4c557b930f types/tag: make orderable 2026-01-09 13:25:34 +09:00
oysteikt 1cb2dddf5d commands/listplaylists: implement 2026-01-09 13:25:33 +09:00
oysteikt 21831a2c68 commands: parse to Self::Request 2026-01-09 13:25:33 +09:00
oysteikt c81975bd2e filter: export all types from inner module 2026-01-09 13:25:33 +09:00
oysteikt 0925a40ea6 common: don't expose types directly 2026-01-09 13:25:32 +09:00
oysteikt ed2b79d0dd commands: add docs for Command trait 2026-01-09 13:25:32 +09:00
oysteikt 9fbf192a1b common/types: add better alias for MountPath 2026-01-09 13:25:32 +09:00
oysteikt 10310a5248 common/types: add better alias for AudioOutputId 2026-01-09 13:25:31 +09:00
oysteikt 1a2ea5327b common/types: add type for ChannelName 2026-01-09 13:25:31 +09:00
oysteikt c833143496 common/types: add better alias for PlaylistVersion 2026-01-09 13:25:31 +09:00
oysteikt ef0ba275de common/types: add type for Sort 2026-01-09 13:25:31 +09:00
oysteikt ed1b58deb1 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.
2026-01-09 13:25:30 +09:00
oysteikt bb1b206a83 commands: fix request de/serialization for list 2026-01-09 13:25:30 +09:00