Bring back the renamed use_std feature for backwards compat #157
No reviewers
Labels
No labels
breaking
bug
dependencies
good first issue
help wanted
unstable
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-uuid-rs/uuid!157
Loading…
Reference in a new issue
No description provided.
Delete branch "sg-use-std-shim"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
addaecd0fcremoved this feature, which was intentionally left deprecated for
backwards compatibility. This "cleanup" removed a deprecated feature
before any released version actually had the deprecation present.
Removing this feature makes it impossible for other crates to support
UUID 0.6 without dropping support for UUID 0.5 and earlier. This is a
major problem for crates like Diesel, which are post-1.0
Ah my bad! I thought that feature was already published in the deprecated state.
Do you mind adding a comment to the toml to note that it's a shim for compatibility between
0.4and0.50.5and0.6? (Did it again!)Done!
Note though we will most likely remove it before 1.0. Should be enough time for crates to adapt
I would argue that keeping this compatibility shim is incredibly low maintenance, and is worth keeping given that this is a crate that is likely to be a public dependency of others. But ultimately it's your call :)
This looks good to me! Thanks @sgrif
@sgrif I would love to have it removed in
1.0maybe add a note that this bound to be removed in the future.Something like
use_std = ["std"] # Compatibility shim for 0.5 and earlier. May be removed in the future. Use std insteadAs
uuid@1.0.0is still quite a bit away, plenty of time to adapt :)After discussion with @KodrAus, we decided to leave that as a release notes warning
bors r+
Build succeeded
hi @sgrif thanks for the PR. This is something that slipped through. We will maintain the compatibility shim in future releases.
@kinggoesgaming yeah true but then users won't know about it. Not everyone will check the toml file. Instead we can put a warning in the docs & readme.
Wouldn't you be able to use the semver-trick to remove the feature flag from new releases while keeping backwards compatibility?