saschagrunert / webapp.rs

A web application completely written in Rust. šŸŒ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Separate backend and frontend into different crates in same workspace

Boscop opened this issue Ā· comments

It would be cleaner to read when backend and frontend are split into separate crates (possibly both depending on a common crate) in the same workspace.

Yes, I will consider switching to rust workspaces and a more coupled dependency management.

This will be done in #9

Solved with #9

But the old crate is still thereā€¦ This is a bit confusingā€¦

Which part of the repository is still relevant? What is old stuff? Are both, worksapces and the main crate still relevant? Is this even valid, having a crate and a workspace at the toplevel?

Every part of the repository is still relevant, the main structure looks like this now:

  • Main Crate, used by both backend and frontend
    • Backend
    • Frontend

So its some kind of tree dependency structure now. :)

Oh, I thought I'd seen the same file in multiple places, but now I realized I looked at different commits.

Still, I think it would be less confusing if you were putting the common/shared parts in another crate not at the top level, I think that would make the differences more clear.

Alright thank you very much for the feedback, I will consider the approach you mentioned.