-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Tauri forced layout of src-tauri
prevents some organizational strategies
#2643
Comments
Can you test #2654 and see if it works on your workspace? :) |
@lucasfernog I can confirm the version from that branch works perfectly! For both That was amazingly fast! Assuming this is merged soon, is there a known timeline for a release that includes those changes? |
We'll make new releases after our audit is finished, sometime next month. We'll decide if we should cut releases before or after applying the audit changes. |
Describe the bug
Tauri right now assumes that its source always live in a
src-tauri
folder.To Reproduce
src-tauri
folder to anything else.cargo tauri dev
orcargo tauri build
.Expected behavior
The application builds as usual.
Screenshots
N/A.
Platform and Versions (required):
Additional context
We use Tauri in our monorepo of Rust code which contains many binaries, several of which are actually Tauri applications. Their frontends are generated in various ways and not tied to a particular frontend framework (like
vue.js
for instance).My understanding is that Tauri assumes so far that it lives on top of an existing frontend code but there seem to be no strong technical reason why it couldn't be considered as an entrypoint that just loads an opaque
dist
folder of web-related files.To give some context, our current Rust repository structure looks like:
Any attempt to run
cargo tauri dev
orcargo tauri build
in that structure yields an error, as this line clearly expects theCargo.toml
and associated Rust directory-structure to be under asrc-tauri
-named folder.While we could technically add an extra folder on top of all Tauri-based clients, we'd like to avoid it as:
Are we attempting something that just should not be done and are we missing obvious reasons why it cannot work ?
I wonder if just looking for the first folder that contains the
tauri.conf.json
file, regardless of whether it is actually calledsrc-tauri
instead would work equally well, while permitting more liberal directory structures.If that's a scenario that you think should be supported, I'd be more than happy to contribute to this awesome project and make the necessary changes and PRs to make this happen. Let me know!
Stack Trace
The text was updated successfully, but these errors were encountered: