Skip to content

Instantly share code, notes, and snippets.

View 0b10011's full-sized avatar

Brandon Frohs 0b10011

View GitHub Profile
@0b10011
0b10011 / cargo
Created November 22, 2019 19:23
A dockerized drop-in replacement for `cargo` that supports caching.
#!/bin/bash
# This is a drop-in replacement for `cargo`
# that runs in a Docker container as the current user
# on the latest Rust image
# and saves all generated files to `./cargo/` and `./target/`.
#
# Be sure to make this file executable: `chmod +x ./cargo`
#
# # Examples