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

[Question] Cargo Offline/Global Packages #6095

Closed
rburmorrison opened this issue Sep 25, 2018 · 2 comments
Closed

[Question] Cargo Offline/Global Packages #6095

rburmorrison opened this issue Sep 25, 2018 · 2 comments

Comments

@rburmorrison
Copy link

I've seen this question asked before, however they were all a few years ago and not for my particular use case. My question is this: is there any way to install cargo packages globally on a system? I am a systems programmer that works in environments that are disconnected from the internet. Rust with Cargo seems like a great environment that I would love to invest my time into, however I cannot just download packages on a whim. Currently, I use Golang because it has both the option to have packages installed globally, or have them installed within the project folder. As much as I love Go, I need something faster.

I agree that in a production environment it's more practical and preferred to have the system that Cargo is built around (a Cargo.toml file that lists the dependencies). Overall, I would like to pre-install a bunch of dependencies that I know I'll need on my offline machine before disconnecting it from the internet (basically forever) like I can with Golang, Python (although it's not practical), and C/C++. Is this a possibility? Thanks.

@rburmorrison rburmorrison changed the title Cargo Offline/Global Packages [Question] Cargo Offline/Global Packages Sep 25, 2018
@sfackler
Copy link
Member

The --offline flag is designed to support this kind of workflow: #5655

@alexcrichton
Copy link
Member

Indeed! I'm going to close this in favor of #5655 as that's the unstable feature implemented to solve this problem, and it's currently tracking stabilization/implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants