| > is there a sustainable way of working/developing with Rust while completely offline? Yes. Once you have downloaded your dependencies the first time while online you are able to work with them completely offline. > read documentation Rust docs: rustup downloads docs for Rust itself alongside the toolchain when you download it. `rustup doc --book` will open the locally downloaded copy of the book The Rust Programming Language in your browser. `rustup doc` will open the locally downloaded copy of the overview of Rust Documentation in your browser. The locally downloaded docs include things like the docs for the Rust Standard Library. Project and dependencies docs: `cargo doc --open' will build the docs for your project and for your dependencies as offline HTML files and open the locally build docs in your web browser for you. Subsequently running the same command while offline will open the already built docs in your web browser again. You will find the built docs under target/doc/ in your project. This includes the docs for your dependencies and their dependencies and so on. And even if you delete the built docs, for example by running `cargo clean', cargo can rebuild the docs offline because it has cached the source code of your dependencies and their dependencies and so on. > manually import libraries (downloaded manually, no dependency hell) Rather than attempt to do it manually I would advice that you run `cargo build' once while online, so that your dependencies are fetched and made available offline. Attempting to do it completely manually has no benefit that I can see and would only serve to waste time and probably introduce problems that would not happen if you leave it to cargo to fetch it all for you. And you can write crates of your own locally, never publish them online and import them by relative local path. |
> Attempting to do it completely manually has no benefit that I can see
Package managers and build tools can do basically whatever they want - run commands, execute binaries, download data, upload data, send telemetry - whatever any one of the package maintainers wants.
I prefer to develop in an offline VM. When a new library is required I just download it using the host machine, copy into VM and use it there. It's easy with make/cMake.