How to install Cargo Local Registery in offline mode

Due to some company restriction, I am working in an offline mode. (No internet connection on PC, I can only copy source via a CD/USB).

In such a scenario, I am considering to use Cargo-Local-Registery (GitHub - dhovart/cargo-local-registry: A cargo subcommand to manage local registries). How to install Cargo Local Registry on my PC without an internet connection.

You would copy the Cargo.toml and Cargo.lock files to the system with internet connection, run cargo-local-registry on this system and then copy the result back to the system without internet connection.

You may want to use cargo vendor instead by the way. This is a command built into cargo. You would use the same workflow.