-
Notifications
You must be signed in to change notification settings - Fork 81
Fix Pkcs11::new bug preventing PKCS#11 library loading and bump rust-version and update deps #289
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
base: main
Are you sure you want to change the base?
Conversation
Thank you for the fix for this issue! It would be good if you could provide the changes at least in separate commits (or ideally as separate PRs) . Now there is everything mixed up in one commit (that is missing the sing-off) and then there is a fixup commit reverting one of the changes. We are certainly interested in the fix, but I am not sure if we want to pull all the changes of dependencies. Do you know why the CI still works on the rust 1.66 when the |
I've opened a new #291 PR that includes only the small change related to |
Interesting, The CI runs only on Linux now. From what I see, it looks the the |
I've worked on it at #276. Maybe it'd be good to merge it early to have at least a check if everything looks sane? 🤔 |
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.
Thank you!! Looks good to me but we need to:
- decide if it's ok to bump the MRSV version. This mostly depends on where cryptoki is used: Ubuntu, Fedora, Microsoft, MacOS. We should have a look at what's the rustc version in the most common distribution
- investigate why the MRSV CI check does not work 😅
You might also need to rebase to latest main
since I have now added the Windows build as required!
411a2fb
to
5cdaf95
Compare
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.
Thank you that's great!
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.
Not related with your PR and you don't need to change anything here but this made me thinking that we could add a dependabot check in some nightly CI which could check that we use the latest dependencies, and update if not!
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.
Agreed. It took me quite a while to locate the actual change, even though I've seen it earlier 😅
Maybe it's best to split this into several smaller PRs and keep this one only about the fix? 🤔
(Sorry for putting you for even more work 🙇 )
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.
@mematthias made a good job of splitting between different commit and there seems to be one just to address the bug, would that be enough 🕵️?
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.
That first commit is still kind-of packed: 860d945 and it includes stuff such as raising MRSV to 1.77 that has been done in another PR...
I just itches me to restructure these commits differently but... maybe it's just my OCD 😅
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.
I think it should be just rebased (instead of doing the merge commits on the way.
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.
The PR needs to be rebased (instead of including merge commits). Also the PR title needs adjustments to reflect the rust-version was really bumped in separate previous commit, otherwise it is super-confusing for any further reader.
paste = "1.0.6" | ||
paste = "1.0.15" |
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.
for paste we have separate issue #279 where it is considered unmaintained (or feature complete -- depending on the point of view) and @hug-dev had a proposal to remove the dependency . Given that it is used only in one place and audit will show the issues with that, I would rather go with removing it than updating. @hug-dev can you open a PR with the proposed change in there to remove it?
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.
I think it should be just rebased (instead of doing the merge commits on the way.
…ith `null`-assigned variables; this resolves an issue that prevented my PKCS#11 library from loading - Ran `cargo update` to refresh crate versions - Raised `rust-version` to 1.77 in `Cargo.toml`, since `mem::offset_of` is stabilized only in this version - Made `basic.rs` tests compile successfully again Signed-off-by: mematthias <107192630+mematthias@users.noreply.github.com>
Signed-off-by: mematthias <107192630+mematthias@users.noreply.github.com>
…version, and resolved all `cargo clippy` warnings Signed-off-by: mematthias <107192630+mematthias@users.noreply.github.com>
Signed-off-by: mematthias <107192630+mematthias@users.noreply.github.com>
Update crates:
cargo update
and fix Clippy warningsThis pull request was originally intended to cover multiple changes, but it has now been split into several smaller parts for clarity and easier review.
This PR is focused solely on crate updates and cleanup:
cargo update
to ensure dependencies are up to datecargo clippy
Further related changes will follow in separate pull requests.
Old description