Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI job to run cargo-semver-checks #1323

Merged
merged 4 commits into from
Jan 16, 2024
Merged

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Jan 12, 2024

What

Add CI job to run cargo-semver-checks that will error if we make a breaking change to a patch or minor release.

Why

To monitor whether the changes being made to the soroban-sdk and its exports are a match for the version being targeted. The soroban-env-common and some of the guest and host crates are reexported by the soroban-sdk and essentially part of its API.

Due to issues outlined in the comment below these checks cannot all be done on the soroban-sdk:

Also, independent of the above not breaking semver rules is relatively important in the Rust ecosystem because cargo favors selecting newer (maximum) instead of older (minimum) versions. While lock files exist, they aren't respected by default in some contexts like cargo install meaning introducing breaking changes into a crate can break downstream tools. (We avoid this on the products we publish by pinning exact versions of the env, but that is not common practice in the Rust ecosystem.)

Close stellar/rs-soroban-sdk#1195

@leighmcculloch leighmcculloch added this pull request to the merge queue Jan 16, 2024
Merged via the queue into main with commit e6cc730 Jan 16, 2024
13 checks passed
@leighmcculloch leighmcculloch deleted the rs-soroban-sdk#1195 branch January 16, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add semver API checks to CI / release process
2 participants