Skip to content

Custom folder for Rust source code #2752

@crapStone

Description

@crapStone

Is your feature request related to a problem? Please describe.
I want to split my codebase into two separate folders: the ui/app and a rust workspace where one of the crates is the tauri app and the rest are libraries that are used by the app.

Describe the solution you'd like
My idea was to add options to the package.json and tauri.conf.json to specify the relative path to the respectively other config.

folder structure:

.
├── crates
│   ├── lib1
│   │   ├── Cargo.toml
│   │   └── src
│   ├── lib2
│   │   ├── Cargo.toml
│   │   └── src
│   └── tauri_app
│       ├── Cargo.toml
│       ├── src
│       └── tauri.conf.json
├── LICENSE
├── README.md
└── ui
    ├── package.json
    └── src

package.json:

{
  "tauri": {
    "rustConfigPath": "../crates/tauri_app/"
  }
}

tari.conf.json

{
  "build": {
    "appPath": "../../ui/",
  }
}

Describe alternatives you've considered
I found this commit but it requires the app and tauri app to be just one folder level apart.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions