How can I use latest dev branch in my Tauri project? #2161
Replies: 1 comment
-
The Tauri example apps give some basis for this. Instead of being pinned to a specific version of [package]
name = "helloworld"
version = "0.1.0"
description = "A very simple Tauri Appplication"
edition = "2018"
[build-dependencies]
tauri-build = { path = "../../../core/tauri-build", features = [ "codegen" ] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = [ "derive" ] }
tauri = { path = "../../../core/tauri", features = [] }
[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]
Each of those reference other dependencies of their own within the Tauri repo, and are already set up to do so via local paths. Would this approach suffice? Or would there be sense in going one step further and providing a utility (maybe via the CLI) to generate a playground project that references a local clone of the Tauri repo (you'd just have to provide the path to it)? EDIT: you can also set a remote git repository as a Cargo dependency, e.g.: wry = { git ="https://github.com/tauri-apps/wry", branch = "feat/ios" } ... however, I don't know whether there are any limitations with that (there are in the world of npm); you'd need to be able to select a path other than the root of the repo, and I'm not sure whether Cargo supports that. |
Beta Was this translation helpful? Give feedback.
-
Sometimes a fix hasn't propagated to a release yet, and you may have to actually pull in from git - or even clone the repo and perform some modification. While this isn't recommended for everyday use - sometimes there is no way to avoid it. What options are there for this?
Beta Was this translation helpful? Give feedback.
All reactions