Don't create subprocesses for the `rust` command

Instead link against the built libraries and directly invoke those.

Closes #5387