Also extract out rust setup from ripgrep.
This is a first start on supporting rust packages. Feedback welcome.