Fixes for crate attribute syntax changes

Trying to fix errors with the latest version of rust. 

More commits incoming!

(I am also learning rust this way, so might take a bit)