#!/bin/sh export PATH=/friends/.cargo/bin:$PATH cat <<'EOF' > /tmp/hello.rs fn main() { println!("hello, script") } EOF cargo script /tmp/hello.rs