-
Notifications
You must be signed in to change notification settings - Fork 73
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
Bump bindgen to 0.69.4 #199
Conversation
Bumps bindgen in order to also bump shlex which version we currently use has a security vulnerability. Signed-off-by: Hugues de Valon <[email protected]>
Ok, I've ran Any chance you have the bandwidth to run that? Or if you give me push rights to your fork I can take care of it. cc @heiher |
Interesting. I can successfully cross generate these bindings locally, including LoongArch. Steps: # Install rust 1.76.0 (stable)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone -b shlexed https://github.com/hug-dev/rust-cryptoki
# HEAD commit 9765405f7be9445aed972f24b41d5bb638bd12e8
cd rust-cryptoki
cargo build --features generate-bindings
cd cryptoki-sys
./regenerate_bindings.sh Logs:
Results:
|
Interesting. That means that the problem is either with the Rust toolchain I was using (an older version), or with cross-compilaton. I'll check again. |
Thanks. The LoongArch support start from Rust 1.71.0. |
Oh sorry, forgot about that! I got the same error running the script than Ionut, running with Rust 1.76.0. |
For the record it works on my machine (as in: |
Hi, thanks for the PR. Parsec's, release (which is coming sometime around April) depends on rust-cryptoki's.
I will have to check for this repository, but I think the same may possibly apply here. To align Please let me know if this is okay or if there are any other questions/comments |
Yes that is perfectly fine! I can close it for now and maybe replace it with an ignore flag on the cargo audit command so that the nightly is not failing anymore? |
I've proposed a way to update |
Can someone for who the script work out of the box take over this PR 🙏 It became more work than I thought to make it cross-compile |
@hug-dev - yeah, no worries, I'll take it over |
@heiher - I've tried again with the latest Rust compiler. I think the issue is with cross-compiling, I'm doing so from x86_64. Should I update this PR with all other bindings, and let you open a PR afterwards updating the loongarch bindings? |
I have also cross-compiled on x86_64 before. I'll try to reproduce it using Github Action. |
Thanks for everything you have done for LoongArch. The root cause is that the https://github.com/heiher/rust-cryptoki/blob/main/.github/workflows/ci.yml#L15-L19
Action results: https://github.com/heiher/rust-cryptoki/actions |
Signed-off-by: Ionut Mihalcea <[email protected]>
Excellent, thank you for pointing that out, @heiher ! I've now updated all the bindings. |
Ah, that explains it, since I also use Arch, btw 😏 😉 |
Thank you so much @ionut-arm !! Can we now approve and merge? |
Bumps bindgen in order to also bump shlex which version we currently use has a security vulnerability.