New comment by icp1994 on void-packages repository https://github.com/void-linux/void-packages/issues/43482#issuecomment-1510834801 Comment: Maybe we can do a cleanup by adding a `do_configure` to the cargo build style. ``` do_configure() { cargo fetch --target ${RUST_TARGET} ${configure_args} } ``` From the docs of `cargo-fetch` > If a `Cargo.lock` file is available, this command will ensure that all of the git dependencies and/or registry dependencies are downloaded and locally available. Subsequent Cargo commands will be able to run offline after a cargo fetch unless the lock file changes. > > If the lock file is not available, then this command will generate the lock file before fetching the dependencies.