Misc. Cargo fixes

Switch to the new version of `[lib]` syntax and ignore some Cargo files.