unify dylib and bin_helpers and create shared_helpers::parse_value_from_args by onur-ozkan · Pull Request #127108 · rust-lang/rust (original) (raw)

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Jun 29, 2024

@rust-timer

Rollup merge of rust-lang#127108 - onur-ozkan:bin-helper, r=Kobzol

unify dylib and bin_helpers and create shared_helpers::parse_value_from_args

dylib and bin_helpers were already used in similar logic. This PR unifies them under a shared_helpers module that is utilized by both the bootstrap library and shims. Additionally, created parse_value_from_args with a unit test. This helps avoid code duplication in shims and can also be used in the bootstrap library if needed (which is the case in one of @Kobzol's tasks).

r? @Kobzol