Cargo packaging

I took a swing at packaging this with Cargo.
Working well for me but you might be able to come up with a better way of dealing with the code generation.