Closed KizzyCode closed 2 years ago
Hi @KizzyCode, apologies for the delay in responding! For some reason I didn't get an email notification that an issue had been created. I'll look into what happened.
I am updating the crate to use the 5.4
release of WolfSSL so I'll fix this at the same time :)
I just tested this on an M1 with version 12.4 and cargo test
completes okay. I'm happy to upgrade the dependency anyway, but I'd prefer to be able to replicate the issue first :smile:
Ok thats interesting β I've just tested this again and can reproduce π
For me it's pretty straight forward:
git clone https://github.com/expressvpn/wolfssl-sys
cd wolfssl-sys
cargo test
If you're interested, I've attached a short video of all the steps above: https://user-images.githubusercontent.com/13999009/179969866-5e909d9e-4378-46e2-8d68-ab50b1ffa884.mp4 (apparently in some browsers it can not be viewed inline and must be downloaded manually π)
Edit: Maybe you're using an older Rust toolchain? I'm using stable-aarch64-apple-darwin unchanged - rustc 1.62.1 (e092d0b6b 2022-07-16)
Yup, after a quick rustup upgrade
I now get the same error. I can confirm that upgrading bindgen
also resolved the error for me. The upgrade doesn't break on x86_64
either which is a plus :smile:
The fix will go out tomorrow once I have my signing key handy. Thanks for reporting this! :smile:
Sorry for the delay - ended up sorting out a new signing key :smile:
This is live now on https://crates.io/crates/wolfssl-sys as 0.1.5
Cool thank you π
The tests fail under macOS:
reference to packed field is unaligned
Expected Behavior
The tests should not fail :D
Current Behavior
The tests fail with (example):
Possible Solution
Update
bindgen
-dependency to0.60.1
β at least on my system, this fixes the error.Steps to Reproduce (for bugs)
cargo test
Context
I want to use this crate :)
Your Environment
0.1.4