Update for rustc

There are a lot of deprecation warnings for the Decodable and Encodable traits, these are left unfixed.