Add cargo integration

WIP. Still needs more work.