-
Notifications
You must be signed in to change notification settings - Fork 15
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
Unsafe blocks review #64
Comments
Thanks for the thoughts and pointers. I would be happy for someone to vet the unsafe blocks. How would you suggest we facilitate that? The We have become so "low level" that in some cases we cannot rely on higher level libraries, for example #50 and #61. |
Great - We can organise this via safety-dance - I've added issue at rust-secure-code/safety-dance#79 |
One bit that I've been thinking about is that the windows and macOS internals are implemented by big Instead, the functions seem to be declared as |
I would like to find find a way to fail CI when the following lints fire:
|
For clippy you would have to add it into github action - that undocumented lint was stabilised I think unsafe_op I am not sure it was stabilised so might need +nightly for cargo clippy You can put thhem into lib.rs as You could gate any nightly-needed features so you don't suddenly require nightly for complication - e.g. gate them via nightly feature and then use that feature in CI |
@pinkforest ahh I meant getting the code changed so the lints would pass. For flipping the lints on, my preference would be to set them as warnings either in |
As the person who wrote the functions: You're right, I did not want to wrap every other line in |
Closing as question answered - thanks! |
@pinkforest many thanks, I think this really improved the crate! We will endeavor to keep up the high standard and please feel free to remind us of this goal in the future. :) |
Hi considering this crate is getting popular 🥳 congrats great work ~80k a day from less than a month :)
Just an idea as this crate is becoming very important in the ecosystem ..
or FWIW considering I am deeply interested about
unsafe
across the whole Rust 🦀 ecosystem I wanted to chime in :)Have you considered / or had anyone to vet these
unsafe
blocks in this crate properly through externally like some neutral 3rd party not deep in the project / associated crates ? I didn't see anything in crev or safety-dance.You could also just hold back merging anything that touches any
unsafe {}
and put a label likeUnsafe-Proposed
and let it sit for a week unless it is critical urgent change - so the community has the chance to chime in - that's what I do in advisory-db to radiate my intent especially on controversial advisories that are not necessarily as time critical -By radiating intent everyone feels having a chance to say something that leads less to haphazard changes people feeling included
Also I find easiest raising issues first and then doing a PR when people either agree with me or we refine the idea / issue first
The text was updated successfully, but these errors were encountered: