Skip to content

Local copy of crates #3623

Closed
Closed
@blodan

Description

@blodan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions