Workspace vs single package #2264
Answered
by
gbj
Matthew-Skeer
asked this question in
Q&A
-
Good Afternoon, I understand that cargo-leptos supports both single-package and workspace setup of projects, but what are the pro/cons of workspace vs single package. Is there any particular use case. or is it just for code seperation. |
Beta Was this translation helpful? Give feedback.
Answered by
gbj
Feb 6, 2024
Replies: 1 comment 1 reply
-
No real differences beyond personal preference! Some people prefer the workspace setup if they have server-only code and they don't want to |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Matthew-Skeer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No real differences beyond personal preference! Some people prefer the workspace setup if they have server-only code and they don't want to
#[cfg]
gate things, or if they're integrating with an existing project, or want to reuse pieces of their logic. The single-crate setup works fine for most use cases.