proof of concept, might eat your laundry
cargo at
is a cargo subcommand that connects to a remote host via SSH, syncs the local source code of your Rust project, and builds it on the remote host.
This is useful when you have access to a more powerful machine than your local one, and want to use it to build and run your Rust projects (or a host with a different architecture).
Note: Windows support is... tricky at the moment (SSH, OpenSSL and rsync are all problem childs)
ssh
client installed on the local machinersync
installed on both machines (used for synchronizing the code)cargo install cargo-at
cargo at $USER@127.0.0.1 build
in the project root folder$USER@127.0.0.1
with the remote host (eg. me@ssh.example.com
)