-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Upgrade der to 0.8
#7695
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
Merged
Merged
Upgrade der to 0.8
#7695
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 1785
🌐 Web query:
What is the minimum version of pkcs8 and x509-cert that supports der 0.8?💡 Result:
The minimum versions of the RustCrypto pkcs8 and x509-cert crates that support der 0.8 are their respective 0.11.0-rc and 0.3.0-rc pre-release versions. For pkcs8: versions prior to 0.11.0 (e.g., 0.10.2) depend on der ^0.7, while 0.11.0-rc.8 and later specify der ^0.8.0-rc.9 in their dependencies, indicating compatibility with der 0.8.0. For x509-cert: versions prior to 0.3.0 (e.g., 0.2.5) depend on der ^0.7.6, while 0.3.0-rc.0 and later (latest 0.3.0-rc.4) specify der ^0.8.0-rc.3, confirming support for der 0.8.0. These crates are part of the RustCrypto/formats monorepo, where der 0.8.0 was released on 2026-02-13, and dependent crates were updated in parallel via pre-releases to match.
Citations:
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 625
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 291
🌐 Web query:
pkcs8 0.10.2 der dependency version💡 Result:
The pkcs8 crate version 0.10.2 depends on the der crate with version requirement ^0.7 (i.e., >=0.7.0, <0.8.0). It also specifies 1 extra feature for der.
Citations:
🌐 Web query:
x509-cert 0.2.5 der dependency version💡 Result:
The x509-cert crate version 0.2.5 depends on the der crate at version ^0.7.6 (specifically version = "0.7.6" with features = ["alloc", "derive", "flagset", "oid"]). This is confirmed directly from the official Cargo.toml source code for x509-cert 0.2.5.
Citations:
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 1202
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 1077
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 206
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 619
🌐 Web query:
pkcs8 0.11.0 stable release der 0.8💡 Result:
The pkcs8 Rust crate from RustCrypto does not have a stable 0.11.0 release as of 2026-04-27. The latest version is the pre-release 0.11.0-rc.11, released on 2026-02-11. The previous stable version is 0.10.2. This 0.11.0 release candidate depends on der ^0.8.0-rc.12 (as shown in Cargo.toml for rc.11), aligning with the query's mention of der 0.8. No stable 0.11.0 or exact der 0.8 (stable) match was found; der 0.8 appears in pre-releases.
Citations:
🌐 Web query:
x509-cert 0.3.0 stable release der 0.8💡 Result:
The RustCrypto x509-cert crate does not have a stable 0.3.0 release as of 2026-04-27. The latest version is 0.3.0-rc.4 (released 2026-01-25). Pre-releases like 0.3.0-pre.0 exist from 2024-10-08, and a v0.3 release train was tracked in GitHub issue
#1289(closed Oct 2024). This version depends on der ^0.8.0-rc.3 (and later RCs use der ^0.8.0-rc.10), aligning with der 0.8 development. The prior stable v0.2.5 uses der ^0.7.6. No full stable 0.3.0 is published on crates.io.Citations:
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 101
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 47
Version incompatibility:
der 0.8is incompatible withpkcs8 0.10andx509-cert 0.2.5currently pinned incrates/stdlib/Cargo.toml.The workspace now specifies
der = "0.8"whilecrates/stdlib/Cargo.tomlstill depends onpkcs8 = "0.10"andx509-cert = "0.2.5", which both requireder ^0.7. This creates a dual-version dependency graph with bothder 0.7andder 0.8present. Since both packages are only pulled in via thessl-rustlsfeature, the risk is contained to that feature flag—as long as noder-typed values (e.g.,AnyRef,ObjectIdentifier) cross the version boundary between the two, compilation will succeed. However, any such crossing will produce cryptic type mismatch errors.Verify this builds with
--features ssl-rustlsbefore merging. If build succeeds, consider upgradingpkcs8andx509-certto versions compatible withder 0.8. Currently, only pre-release versions support this (e.g.,pkcs8 = "0.11.0-rc"andx509-cert = "0.3.0-rc"); stable releases matchingder 0.8have not yet been published.🤖 Prompt for AI Agents