At least for Arch Linux, offline build and splitting packaging process is recommended. i.e.
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" # Download crates needed for build
cargo build --frozen --release --all-features # offline build
cargo install --no-track --frozen --all-features --root "$pkgdir/usr/" --path . # packaging
However, the step to install everything is provided only by GNU make and manual installation of manpages,etc... needs many steps. I know cargo fetch before make is possible, but difficult to understand it.
Consider supporting to install them by cargo install --all-features.
Consider also dropping support of GNU make since it internally calls cargo too many times already.
At least for Arch Linux, offline build and splitting packaging process is recommended. i.e.
However, the step to install everything is provided only by GNU
makeand manual installation ofmanpages,etc... needs many steps. I knowcargo fetchbeforemakeis possible, but difficult to understand it.Consider supporting to install them by
cargo install --all-features.Consider also dropping support of GNU
makesince it internally callscargotoo many times already.