« Back to Index

Rust Guardfile

View original Gist on GitHub

Guardfile

require "terminal-notifier-guard"

guard :shell do
  watch(/(.*)\/(.*)\.rs$/) do |path, folder|
    puts "Compiling: #{folder}/main.rs"
    `rustc #{folder}/main.rs`
  end
end