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

Allow disabling CLI dependency downloads #3417

Open
CathalMullan opened this issue Dec 20, 2024 · 0 comments
Open

Allow disabling CLI dependency downloads #3417

CathalMullan opened this issue Dec 20, 2024 · 0 comments
Labels
cli Related to the dioxus-cli program

Comments

@CathalMullan
Copy link

CathalMullan commented Dec 20, 2024

Feature Request

For environments like NixOS, auto-downloading binaries like wasm-bindgen isn't ideal.

Similar issue for the rustup usage for auto-downloading of toolchain targets. rustup may not even be present in certain environments.

Add a way to disable these downloads.

Implement Suggestion

Add a CLI feature to disable downloads, similar to the "no_downloads" feature of cargo-leptos. Just look for the tools in $PATH instead.

Instead of using rustup to check what targets are currently installed, you could use rustc --print sysroot instead.

I have a (messy) example here.

@ealmloff ealmloff added the cli Related to the dioxus-cli program label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the dioxus-cli program
Projects
None yet
Development

No branches or pull requests

2 participants