git submodule add https://github.com/raspberrypi/utils raspberrypi-utils-git# Install dependencies to build raspberrypi-utils
sudo apt install -y cmake device-tree-compiler libfdt-dev libgnutls28-devPin repo to a specific commit or tag
cd raspberrypi-utils-git
git checkout <commit-hash-or-tag>
cd ../..
git add raspberrypi-utils-git
git commit -m "Add raspberrypi/utils submodule pinned to <commit-hash>"When someone else clones the repo (or for your CI), they will need to initialize the submodule:
git clone --recursive https://github.com/lizcore-tech/raspberrypi-utils-rs.git
# OR if already cloned:
git submodule update --init --recursiveTo publish a new version of the crate:
- Update
raspberrypi-utilsrepository and copy the files of the library
cd raspberrypi-utils-git/
cp -r raspberrypi-utils-git/piolib/* raspberrypi-utils-sys/piolib-src/- Update both Cargo.toml files with the new version
raspberrypi-utils/Cargo.tomlandraspberrypi-utils-sys/Cargo.toml - Then publish the new version:
cargo publish --dry-run
cargo publish- If failed due to expired token, re-login and try again:
cargo login