Open jrmarino opened 1 week ago
Adding a .cargo/config.toml should work. Under the hood corrosion just calls cargo. There is no mechanism in corrosion to generate a config.toml, but you could do that in your own cmake code if you wanted. Let me know if you run into any issues with that. I think you may also need to pass some additional cargo flags to cargo via corrosion, (perhaps it was --frozen ) to avoid cargo metadata accessing the Internet.
for example:
In this sandbox, internet connectivity is intentionally disabled, so the crates have been prefetched and placed at /myloc/cargo-crates. I haven't been able to figure out how to tell corrosion_import_crate this location (so downloading isn't required).
This is an example of how I typically do this with cargo directly:
So is it possible to use corrosion offline with prepositioned crates?