Get the latest tech news

Rust Foundation Reports 20% of Rust Crates Use 'Unsafe' Keyword


A Rust Foundation blog post begins by reminding readers that Rust programs "are unable to compile if memory management rules are violated, essentially eliminating the possibility of a memory issue at runtime." But then it goes on to explore "Unsafe Rust in the wild" (used for a small set of acti...

In reality, the unsafe keyword comes with special safeguards and can be a powerful way to work with fewer restrictions when a function requires flexibility, so long as standard precautions are used." And 34.35% make a direct function call into another crate that uses the unsafe keyword [according to numbers derived from the Rust Foundation project Painter]. Under the Security Initiative, the Rust Foundation's Technology team has developed new tools like [dependency-graphing] Painter, TypoMania [which checks package registries for typo-squatting] and Sandpit [an internal tool watching for malicious crates]... giving users insight into vulnerabilities before they can happen and allowing for a quick response if an exploitation occurs.

Get the Android app

Or read this on Slashdot

Read more on:

Photo of Keyword

Keyword

Photo of rust foundation

rust foundation

Photo of rust crates

rust crates

Related news:

News photo

The Performance Impact of C++'s `final` Keyword

News photo

To Help Rust/C++ Interoperability, Google Gives Rust Foundation $1M

News photo

Rust Foundation Plans Training/Certification Program. Security Initiative Funded Through 2024