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

Auto-add dependencies #829

Open
sonnyp opened this issue Nov 21, 2023 · 2 comments
Open

Auto-add dependencies #829

sonnyp opened this issue Nov 21, 2023 · 2 comments
Labels
enhancement New feature or request rust

Comments

@sonnyp
Copy link
Contributor

sonnyp commented Nov 21, 2023

In Rust projects, since we have cargo, it's possible to install dependencies and use them from Workbench.
it's very easy.

Start a project, close the window, Workbench will ask you to save it.

go in that folder and run

cargo add barecode

Reopen the project with Workbench and you'll be able to use that crate.


However as you can see the experience to add crates isn't ideal. One potential solution, instead of building a UI - is to automatically download/build dependencies by analyzing imports.

@sonnyp sonnyp added enhancement New feature or request rust labels Nov 21, 2023
@sonnyp
Copy link
Contributor Author

sonnyp commented Nov 21, 2023

I would like to support other programming languages but we don't have a dependency manager for Python/Vala/JS ATM.

@sonnyp
Copy link
Contributor Author

sonnyp commented Nov 21, 2023

For JavaScript we could support

import lodash from "https://unpkg.com/[email protected]/lodash.js"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rust
Projects
None yet
Development

No branches or pull requests

1 participant