-
Notifications
You must be signed in to change notification settings - Fork 29
Fixes #138 #139
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: master
Are you sure you want to change the base?
Fixes #138 #139
Conversation
…nsafe extern" blocks instead of "extern" blocks, the MSRV is now 1.82, where support for this was added.
It seems that newer versions have fixed this difference. Take a look at the pull request below: Is it possible for you to experiment with that? |
Hey, thanks for the quick response. As far as i can see, this only changes the type of a single filed of the stat field to be the same as some constants to make some operation between them possible. This does not change the size of the last 4 parameters of the struct. |
I should clarify, that the problem is, that the size of |
So, is it possible for it to adjust the GitHub Actions workflow and fix the formatting of the code? |
I'm unsure what you are requesting. The Github Actions seem to be failing before my commit (like in the newest master commit 9a7c715) already. Looking at why they are failing they seem to be unrelated to my changes and i'm not sure how i should change them. The code style of my changes should be correct as per standard rustfmt formatting. The rust 1.65 test seem to be failing due to another crate, but will be broken by this merge due to using a new bindgen (like i've noted). This can probably be fixed by generating the bindings using an older version of bindgen. But I'm not sure why these checks even exist and if this old rust version should still be supported. |
I really appreciate your offer to help. After reviewing the issues, it appears that they are quite unrelated. I'm considering merging this request as is. If you can assist us in ironing out the previous versions, that would be very, very helpful. As you noted, I believe that the style issues arise because the workflow is using the Rust nightly compiler instead of the stable version, which causes the formatting to differ. I think it would be wise to stick with the stable version and avoid nightly features for code formatting. Regarding the old version of Rust support, it is not critical to support such an old version, but I prefer to avoid breaking support for older versions when possible. Wouldn't it be nice if we could maintain compatibility with lower versions? Not necessarily version 1.65, but version 1.75 or similar would be great, as it would facilitate easier upgrades for embedded devices and other users. How do you think we should proceed? Would you prefer to match this as it is and work on resolving issues in another pull request, or would you like to rework this one? |
…atibility with rust 1.65
… syntax when generating and update generated.rs.
I've locked the tokio version to 1.38, which has an MSRV of 1.63 and also downgrades As far as the failing nightly actions, i think it's due to the Could you please rerun the actions to see if there are further conflicts? |
Hey, sorry for not getting back sooner, but i had a lot to do. I've locked the tokio-utils crate to an older version that has support for rust 1.65 and tested it in the rust docker container for that version. It seems to run fine now. I've also added a simple check in an integration test that checks the stat object given by the ArchiveIterator. It's not a precise that but this should catch an incorrect type being parsed from the FFI (like the one before my code changes). |
This fixes #138.
Important note: Due to bindgen now generating "unsafe extern" blocks instead of "extern" blocks, the MSRV is now 1.82, where support for this was added.