Implement a RESP parser #1

Open
opened 2026-06-28 19:22:14 +02:00 by bitwise · 0 comments
Owner

Parse incoming bytes into a DataType enum

  • Implement DataType enum (SimpleString, Error, Integer, BulkString, Array, Null)
  • Implement parse(bytes) -> Result<DataType, RedisError>
  • Implement serialize(DataType) -> Vec
  • Test with raw RESP strings like "*2\r\n$3\r\nGET\r\n$3\r\nfoo\r\n"
Parse incoming bytes into a DataType enum - [x] Implement DataType enum (SimpleString, Error, Integer, BulkString, Array, Null) - [ ] Implement parse(bytes) -> Result<DataType, RedisError> - [ ] Implement serialize(DataType) -> Vec<u8> - [ ] Test with raw RESP strings like "*2\r\n$3\r\nGET\r\n$3\r\nfoo\r\n"
bitwise added this to the Tasks list project 2026-06-28 19:22:14 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bitwise/Rustdis#1
No description provided.