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

control installing of Rust packages #83

Closed
PetrKralCZ opened this issue Jan 25, 2023 · 3 comments
Closed

control installing of Rust packages #83

PetrKralCZ opened this issue Jan 25, 2023 · 3 comments
Labels
enhancement New feature or request Rust

Comments

@PetrKralCZ
Copy link
Collaborator

  • For installing software written in Rust we are using the cargo install command. This command downloads all the latest dependencies.
  • We need to have full control over the versions of dependencies being downloaded and ideally let EasyBuild download them itself and install them from local directories.
  • The problem is, it seems the cargo command always expects there is a Cargo.toml file specifying these dependencies.
  • The cargo install <dependency_name> only works for installing programs and not libraries.
error: there is nothing to install in `anyhow v1.0.68`, because it has no binaries
`cargo install` is only for installing programs, and can't be used with libraries.
To use a library crate, add it as a dependency in a Cargo project instead.
  • The cargo fetch command also expects a Cargo.toml file
error: could not find `Cargo.toml` in `/home/user` or any parent directory
  • The fact that there is a --offline option for the cargo install and the cargo vendor command suggests there should be a way to install dependencies from a local directory.
  • Otherwise the ext_list of Rust-written dependencies would probably need to be used to generate a custom Cargo.toml file.
@boegel
Copy link
Contributor

boegel commented Jan 25, 2023

Hmm, maybe it would be better to have an issue for this in the EasyBuild GitHub repository, since this is not exactly specific to VSC...

Thoughts @smoors, @lexming?

@boegel
Copy link
Contributor

boegel commented Mar 6, 2023

easybuilders/easybuild-easyblocks#2902 looks like an interesting start?

@boegel
Copy link
Contributor

boegel commented Jun 9, 2023

closing this since easybuilders/easybuild-easyblocks#2902 was merged and included in EasyBuild v4.7.2

@boegel boegel closed this as completed Jun 9, 2023
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

2 participants