-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Backport and Deprecations to 0.14.x from 1.0 #3052
Comments
Personally, I'd prefer it to be an opt-out feature.
|
A way for the backports to be opt-out would still have to be an opt-in feature that's enabled by default. Features are additive, and should only ever enable new functionality. Code that compiles without a feature enabled should never break when a new feature is enabled. Source: https://doc.rust-lang.org/cargo/reference/features.html?highlight=additive#feature-unification |
Yea, backports can simply be opt-in: we'll make a cargo feature you can enable, and won't put it in
I assume you mean being able to opt-out of the deprecation warnings. Users wouldn't have to |
clap initially did opt-out but switched to opt-in. clap-rs/clap#3822 is the issue that led us to making the switch.
For us, we document in our version migration guide to run |
The clap approach sounds considerate. In line with that and on this point specifically:
Warnings that cannot be fixed are probably just going to annoy people, so opt-in, I'd say. |
In order to ease the upgrade from 0.14.x to 1.0, a big help would be to backport additions from 1.0, and add deprecation warnings of things that will go away. Ideally, this will allow people using 0.14.x versions to start updating their apps and libraries with guides from the compiler, without having to fully swallow the 1.0 pill yet.
Backports
Deprecations
hyper-util
, we could add a weaker deprecation warning, especially if the type that is moving is easy to copy.Opt-in / Opt-out
1.0-backports
(or some better name), so people only compile the backports if they want to use them.#[allow(deprecation)]
.The text was updated successfully, but these errors were encountered: