### Set Release Variables Source: https://github.com/rust-embedded/embedded-hal-mock/blob/main/RELEASING.md Set the VERSION and GPG_KEY environment variables before proceeding with the release. ```bash $ export VERSION=X.Y.Z $ export GPG_KEY=20EE002D778AE197EF7D0D2CB993FF98A90C9AB1 ``` -------------------------------- ### Update Changelog Source: https://github.com/rust-embedded/embedded-hal-mock/blob/main/RELEASING.md Update the CHANGELOG.md file with the changes for the new release. ```bash $ vim CHANGELOG.md ``` -------------------------------- ### Publish Release Source: https://github.com/rust-embedded/embedded-hal-mock/blob/main/RELEASING.md Publish the new version to crates.io and push the tags to the remote repository. ```bash $ cargo publish $ git push && git push --tags ``` -------------------------------- ### Commit and Tag Release Source: https://github.com/rust-embedded/embedded-hal-mock/blob/main/RELEASING.md Commit the changes with a signed message and create a signed tag for the release. ```bash $ git commit -S${GPG_KEY} -m "Release v${VERSION}" $ git tag -s -u ${GPG_KEY} v${VERSION} -m "Version ${VERSION}" ``` -------------------------------- ### Update Version Numbers Source: https://github.com/rust-embedded/embedded-hal-mock/blob/main/RELEASING.md Edit the Cargo.toml file to reflect the new version number. ```bash $ vim Cargo.toml ``` -------------------------------- ### Patching embedded-hal Dependency Source: https://github.com/rust-embedded/embedded-hal-mock/blob/main/README.md Override the embedded-hal dependency version in Cargo.toml to use a development version. This is useful for testing against the latest changes in embedded-hal. ```yaml [patch.crates-io] eh1 = { git = "https://github.com/rust-embedded/embedded-hal" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.