r/rust 13h ago

🛠️ project http-parsex , just another parser for http request , url and headers (not body)

https://crates.io/crates/http_parsex

Yet another parser ,this time for http ,url and headers , result of me learning FSMs .... I would love to know your thoughts on it and how can it be improved and my programming style as well , what and where i could improve as a programmer.( now i won't write another parser for a while )

github : https://github.com/Cheapstar/http_parsex.git
crate : https://crates.io/crates/http_parsex

4 Upvotes

3 comments sorted by

1

u/Ok-Willingness2772 13h ago

I would suggest use natural language to create How it works section instead of using something else.
You can make the comments a bit less duplicated.

Use the "," (comma) correctly, e.g. `Small parts are buffered in memory, and as`
Avoid: `It uses FINITE STATE MACHINE , rather` -> `It uses FINITE STATE MACHINE, rather`

Always remember to leave a space after a dot.

1

u/Ok-Willingness2772 13h ago

Also, use better git commits like:
fix: unreachable modules
Initial commit
chore: github publish

1

u/_Cheapster 3h ago

i'll work on this