#!/usr/bin/env ruby
filepath =
text = File.read(filepath)
# Horrifying hack to add Default to structs, except the ones containing enums with no default.
re =
text = text.gsub(re, )
# Add PartialEq to everything.
re =
text = text.gsub(re, )
File.open(filepath, ) { file.puts(text)}