rust.test now supports link_whole

The test function in the rust module now supports the link_whole keyword argument in addition to link_with and dependencies.