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.
This PR introduces an optional
config
parameter to the publicfn build
. This allows passing explicit config when usingxbuild
as a library (#58), which would otherwise require appending the config section to theCargo.toml
. IfNone
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 ofcargo
. Previously the constructor accepted the explicit args but they were not added to the list of all args.