{ rustc, writeShellScriptBin }:

writeShellScriptBin "run_rust" ''
  out=$(mktemp)
  ${rustc}/bin/rustc "$1" -o $out
  exec $out
''