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

Local copy of crates #3623

Closed
blodan opened this issue Jan 31, 2017 · 1 comment
Closed

Local copy of crates #3623

blodan opened this issue Jan 31, 2017 · 1 comment

Comments

@blodan
Copy link

blodan commented Jan 31, 2017

I'm trying to create a package / port for FreeBSD of mozillas geckodriver.

However, FreeBSDs packagesystem does not allow a software access to internet during build which kind of borks out cargos entire build system.

How can I build a software with local crates?

I figured I could just tar the registry folder where cargo downloads all the dependencies to and then untar it before i run cargo build again on the package build system, however, cargo doesnt seem to read the already downloaded crates from the registry folder where it stored them the first time around, but instead tries to contact github eventhough all dependencies are already present and downloaded in the registry folder.

How do I solve this particular problem? I need to be able to build geckodriver without internet, I can however download a tar before build with the crates and put it in the right place.

@steveklabnik
Copy link
Member

steveklabnik commented Jan 31, 2017

This question is better asked on https://users.rust-lang.org/; cargo supports these features, but we try to keep the issue tracker for issues only. Thanks!

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

2 participants