rustpkg: Implement RUST_PATH

Unfortunately, the main test for this is ignored due to #7071.

Closes #5682
auto merge of #7397 : catamorphism/rust/rustpkg_path, r=brson

r? @brson Unfortunately, the main test for this is ignored due to #7071.

Closes #5682