extra / rustpkg: Make getopts::opt_val private again

and use opt_str instead of opt_val in rustpkg

Closes #9311
auto merge of #10372 : catamorphism/rust/rustpkg-issue-9311, r=catamorphism

and use opt_str instead of opt_val in rustpkg

Closes #9311