There's a merged pull request on the void-packages repository build-style/cargo: pass config_args in do_check. https://github.com/void-linux/void-packages/pull/23306 Description: Cargo rebuilds the package if the configure_args aren't the same, which makes it test the wrong binary.