Should I use Node or Cargo? #5692
Beanow
announced in
Frequently Asked
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Mirrored from https://tauri.app/v1/guides/faq/#node-or-cargo
Even though installing the CLI through Cargo is the preferred option, it has to compile the whole binary from scratch when you install it. If you're in a CI environment or on a very slow machine you're better off choosing another installation method.
As the CLI is written in Rust, it is naturally available through crates.io and installable with Cargo.
We also compile the CLI as a native Node.js addon and distribute it via npm. This has several advantages compared to the Cargo installation method:
Beta Was this translation helpful? Give feedback.
All reactions