Take cargo-geiger to the web #302
Replies: 4 comments 4 replies
-
What might be interesting if you were willing to offer it as-a-service is a way to generate a cargo geiger badge for your project, or an image-based report that can easily be embedded in things like README.mds |
Beta Was this translation helpful? Give feedback.
-
I wonder whether it would be more practical to have this information in lib.rs, where it already shows crev reviews, rather than a separate website. cc @kornelski |
Beta Was this translation helpful? Give feedback.
-
In general I think things like this are trying to expand the definition of unsafe beyond what it was designed for, in ways more likely to confuse or mislead people. The construct of unsafe code is defined in terms of Rust’s safety model, and is not about security boundaries of applications, but about permitting code which Rust’s safety model can’t statically determine to uphold Rust’s key safety invariants. Safety does not equal security. In the context of the safety model, you are generally assuming trusted contributors, with the goal of the model being to encourage safe code by default to benefit from Rust’s safety guarantees, and when that isn’t enough, to keep the scope of the unsafe code limited to make auditing easier. It does not make sense to extend this to a potential upstream dependency’s malicious contributor. |
Beta Was this translation helpful? Give feedback.
-
I guess the core charges here are
I wonder whether it would be agreeable for the README explicitly to recommend considering rust-secure-code/cargo-supply-chain as an element of the process of answering that question, potentially helping to divert such users away from Footnotes
|
Beta Was this translation helpful? Give feedback.
-
Hi cargo-geiger community.
I am the creator of https://unsaferust.org. The reasons I created it are pretty match the same reasons you created cargo-geiger. So, I was wondering if we could join forces and take cargo-geiger to the web.
What I envision, is capturing the output of cargo-geiger (or a summary of the output) and show it on each crate's details page.
This way we can have a very easy and quick reference regarding the usage of unsafe per crate, and the the total usage of unsafe and all its dependencies, per crate.
I also intent to add a chart per crate, showing the progression (or regression) of unsafe usage over time.
Waiting on your thoughts :-)
Beta Was this translation helpful? Give feedback.
All reactions