#Workspace design

1 messages · Page 1 of 1 (latest)

burnt isle
#

Hi!
I am experiencing a slow build time, and I would like to try the workspace design, but I have cyclic dependency issue.

I would like to have

  • a main crate for the main app,
  • router crate for the router,
  • component crate for my components,
  • pages crate for my pages.

My issue, it that the router crate needs access to the pages crate (to navigate there), pages needs access to components and router crate (to use Link component), and components need access to router crate also to display links. This is a nice cyclic dependency issue. How should I solve it?

Btw. Having 7 sample pages and 3 components, using trunk serve I have a massive 30-40 sec build time. Is that normal?

burnt isle
#

ok so I move out the complete yew project from my backend workspace (just using dependencies from it), and now the compile times went back to 1-3 sec (trunk serve). Any idea what happened? Everything else is unchanged. So same files, same dependencies, everything is the same, just moved out from the backend workspace.