Give information about unsafe
keyword on crate readme metadata
#8817
ikhwanperwira
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As the philosophy of rust is being memory safe, every crate that published by cargo must tells info whether the crate is using
unsafe
keyword or not. So that the publisher no need to manually give warning and another people can consider to use the crate or not. The dependents must be affected too.This can be easily solved by rust-analyzer or cargo where the cargo analyze the entire code and check whether it found
unsafe
keyword or not.The only exception to remove mark unsafe even thought using
unsafe
keyword on a crate is, if there are consensus on another third party to confirm that the crate is safe to being used.Beta Was this translation helpful? Give feedback.
All reactions