OctaneWeb / Octane

A web server modeled after express in Rust.
MIT License
139 stars 5 forks source link

Remap project structure #25

Open Daksh14 opened 3 years ago

Daksh14 commented 3 years ago

Remapping project structure in the following way (suggestions always welcome)

octane_http1x
octane_http2
octane_http3
octane_multipart
octane_router
...

Basically, sub crates for each component, that way it's easy to hide them behind feature requests and code is in better and findable places

somebody1234 commented 3 years ago

imo feature flags > subcrates; subcrates would only be better (instead of worse) if said crates could be used for other webservers as well

Daksh14 commented 3 years ago

We would still have feature flags, it would be easier to separate protocols under feature flags with subcrates, they will both work together, also since we are a light weight web server, it would help, what do you say?

somebody1234 commented 3 years ago

idk tbh. i guess my point is, if the subcrates can't be used alone there's no real reason to separate into subcrates

Daksh14 commented 3 years ago

Good point, we'll defer on this for now then