Run the file in Emacs’ dired

I started going through the The Rust Programming Language to learn rust. I’m using the rustic package to edit files, run cargo, etc.