So it's a good thing that cargo can be used without downloading dependencies during the build! Just clone the repos of the dependencies (and transitive dependencies), just like you would for a C++ project. Then set up your cargo file to point at the location for your local copy instead of using the default download behavior.
There's even a tool called cargo-vendor that does this for you!
There's even a tool called cargo-vendor that does this for you!