rust-osdev / cargo-xbuild

Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc.
Apache License 2.0
256 stars 25 forks source link

Improvements to args and config for lib usage #62

Closed ascjones closed 4 years ago

ascjones commented 4 years ago

This PR introduces an optional config parameter to the public fn build. This allows passing explicit config when using xbuild as a library (#58), which would otherwise require appending the config section to the Cargo.toml. If None is passed then it will attempt to resolve from the config file.

A second improvement is a new constructor for Args, which will add the explicitly specified args to the list of all args. This set of args is passed through to the internal invocation of cargo. Previously the constructor accepted the explicit args but they were not added to the list of all args.

phil-opp commented 4 years ago

Published as version 0.5.26