Skip to content

Why deprecating types is considered a breaking change? #1032

Answered by obi1kenobi
jcornaz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! It isn't breaking — the cargo-semver-checks output should have ended with:

     Summary semver requires new minor version: 0 major and 1 minor checks failed

It's asking you to consider making a minor version bump, not major. With default cargo-semver-checks settings, causing new warnings in downstream code will require a minor bump. This is a default we chose based on the fact that many projects run with -D warnings in CI (so this would be breaking to them), and based on a poll of our user base when introducing the first few lints in this category where "require a minor version" won by a large margin.

If you don't like this lint, you can use lint configuration to lower it to a warnin…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jcornaz
Comment options

@obi1kenobi
Comment options

@jcornaz
Comment options

@obi1kenobi
Comment options

Answer selected by jcornaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants