Skip to content
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

[request] Need an option to install CLIs by cargo binstall #2943

Open
1 task
liigo opened this issue Nov 5, 2024 · 1 comment
Open
1 task

[request] Need an option to install CLIs by cargo binstall #2943

liigo opened this issue Nov 5, 2024 · 1 comment
Labels
discuss Does this require further discussion before it's dealt with? enhancement Does it add or improve content?

Comments

@liigo
Copy link

liigo commented Nov 5, 2024

Question you want answered

How do I get started as soon as possible?

Where did you look for an answer?

the website

Page URL

https://tauri.app/start/create-project/

Additional context

when install create-tauri-app tauri-cli trunk, the cargo install is very slow.

Downloading
Building [=======================> ] 613/616: tauri-cli, tauri-utils
Building [=======================> ] 614/616: tauri-cli
Finished release profile [optimized] target(s) in 10m 56s

cargo binstall may be faster and then improve the user experience.


EDIT: when building trunk on windows, extra efforts maybe needed (to install openssl):

  It looks like you're compiling for MSVC but we couldn't detect an OpenSSL
  installation. If there isn't one installed then you can try the rust-openssl
  README for more information about how to download precompiled binaries of
  OpenSSL:

  https://github.com/sfackler/rust-openssl#windows

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `trunk v0.21.2`, intermediate artifacts can be found at `E:\tmp\RUST_DIR\CARGO_TARGET_DIR`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

cargo binstall maybe help here (but I'm not sure).

Are you willing to work on this yourself?

  • I want to work on this myself
@liigo liigo added discuss Does this require further discussion before it's dealt with? enhancement Does it add or improve content? labels Nov 5, 2024
@github-project-automation github-project-automation bot moved this to 🪵 Backlog in Documentation Nov 5, 2024
@liigo liigo changed the title [request] Need an option to use cargo binstall [request] Need an option to install CLIs by cargo binstall Nov 5, 2024
@FabianLars
Copy link
Member

tauri-cli has been available via binstall for a long time now. we should indeed add it to the docs though.

create-tauri-app should be easy to add binstall support since we're already building the binaries. If you want that, please request it here https://github.com/tauri-apps/create-tauri-app/issues

trunk isn't reallyyy our problem but it should also be available via binstall already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Does this require further discussion before it's dealt with? enhancement Does it add or improve content?
Projects
Status: 🪵 Backlog
Development

No branches or pull requests

2 participants