Add build_lib_with_cfgs, build_bin_with_cfgs to rustpkg API. Closes #9944.
auto merge of #10454 : z0w0/rust/issue-9944, r=cmr

Allows you to provide explicit `--cfg` flags when building certain packages through the rustpkg API.