← RustChallenge.com

Coding · Facts & stats

Rust facts & stats

7 fact-checked facts about the Rust programming language, each with the reason behind it. 5 more are in today's round and join this page after it closes.

Play today's round

The basics

What is Rust's official build tool and package manager called?

AnswerCargo

Cargo builds Rust projects, runs tests and downloads dependencies.

Rust's unofficial crab mascot is named what?

AnswerFerris

Ferris the crab is the community mascot, and Rust fans call themselves Rustaceans.

Going deeper

By default, variables declared with let in Rust are what?

AnswerImmutable

Rust variables cannot be changed unless declared with let mut.

Instead of null values, Rust usually represents a value that might be missing with which type?

AnswerOption

Option has two variants: Some(value) or None.

How does Rust achieve memory safety without a garbage collector?

AnswerOwnership and borrowing rules checked at compile time

Rust's compiler tracks which part of the program owns each value and frees memory when the owner goes out of scope.

Expert level

Which Rust type is commonly returned by operations that can fail?

AnswerResult

Result has Ok(value) for success and Err(error) for failure.

Which Rust keyword marks code the compiler cannot fully check for memory safety, such as dereferencing raw pointers?

Answerunsafe

Inside an unsafe block the programmer takes responsibility for upholding Rust's safety rules.

Know these cold?Today's round is five questions like these, 20 seconds each. Your streak and level follow you to every arena.Play today's round