I added the script to the recipe.yml file of my personal silverblue-nvidia fork, like this:
- type: script
scripts:
# this sets up the proper policy & signing files for signed images to work
- signing.sh
- cargo.sh # this script installs rust packages from cargo.io
I finally found rpm packages of the cargo packages I need. So I disabled the cargo install script.
So my problem is solved for now, but still I’d like to know how cargo packages would directly be build into the image.