Make rust crate type customizable

Add an option to the rust checker so the user can set the value of the
--crate-type compiler flag