@ema @MadMike77 @9names @hjvt @chuang
There was a blog post recently about that on planet.debian.org. You can create a .cargo/config file in you project root and then install all required crates as packages and tell cargo in said file to use those and build offline.
There was a blog post recently about that on planet.debian.org. You can create a .cargo/config file in you project root and then install all required crates as packages and tell cargo in said file to use those and build offline.
- replies
- 1
- announces
- 0
- likes
- 1
@9names yeah pretty much. Create the config file mentioned and install the libraries via apt, for instance syn version 2.x becomes librust-syn-dev. You might need to patch your Cargo.toml as we either are ahead or behind versionwise (sometimes). Like if you actually develop rust I wouldn't actually recommend it (unless you want to). If you have a spotty connection and want to develop even offline then it might be viable. Ymmv, though.