-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Top Level Cargo Workspace Breaks Tauri Info #4232
Comments
I would like to see how we should use tauri with a workspace setup on the docs. |
While it's not the standard/default layout, using cargo (virtual) workspaces is totally fine. I do that all the time too. And yes |
@sibyl666 I agree about docs but honestly I just followed the docs here and no real issues getting workspaces running in tauri: the only caveat and a gotcha note in passing Definitely recommend using workspaces for any tauri project and maybe tauri docs should encourage this? |
Describe the bug
I'm working on setting up Tauri as a front-end for my Rust library, with a top-level Cargo.toml file that looks like the following:
When I run
cargo update
, it putsCargo.lock
in the top (root) directory. Then, runningtauri info
shows "(no lockfile)", or older versions of my dependencies if I already have a lockfile in./src-tauri/
.Reproduction
Cargo.toml
file at the root directory withtauri info
and you will see(no lockfile)
for tauri deps.Expected behavior
I expect it to default first to use the cargo lock file at the top level (same as cargo).
Platform and versions
Stack trace
No response
Additional context
I'm pretty new to Tauri and Rust, so if this is not the "correct" way of structuring my project I can close this, but it was very confusing to me initially that I was seeing outdated versions of tauri in my tauri info when using cargo workspaces.
I could place the library directory (
core/
) as a sub-directory in./src-tauri
and move my workspace into that directory as well, but that seems counter to what I'm trying to build, where tauri is an optional front-end to this library, and the main component of my repo is incore
.The text was updated successfully, but these errors were encountered: