We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, we do not use any unsafe code and its advantageous to keep it this way so that we rely on the static analysis done by the compiler.
We can signal/assert that we have no unsafe code by adding #![forbid(unsafe_code)] to the crate root of each crate.
#![forbid(unsafe_code)]
The crate root for a library is lib.rs and the crate root for a binary is main.rs.
lib.rs
main.rs
We only have one binary in the nargo crate, though since this file is doing nothing, we only need to modify the lib.rs files.
nargo
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Problem
Currently, we do not use any unsafe code and its advantageous to keep it this way so that we rely on the static analysis done by the compiler.
Solution
We can signal/assert that we have no unsafe code by adding
#![forbid(unsafe_code)]
to the crate root of each crate.The crate root for a library is
lib.rs
and the crate root for a binary ismain.rs
.We only have one binary in the
nargo
crate, though since this file is doing nothing, we only need to modify thelib.rs
files.Alternatives considered
Additional context
The text was updated successfully, but these errors were encountered: