You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-17 14:47:35 +02:00
Publish Comprehensive Rust 🦀
This commit is contained in:
12
src/why-rust/compile-time.md
Normal file
12
src/why-rust/compile-time.md
Normal file
@ -0,0 +1,12 @@
|
||||
# Compile Time Guarantees
|
||||
|
||||
Static memory management at compile time:
|
||||
|
||||
* No uninitialized variables.
|
||||
* No memory leaks.
|
||||
* No double-frees.
|
||||
* No use-after-free.
|
||||
* No `NULL` pointers.
|
||||
* No forgotten locked mutexes.
|
||||
* No data races between threads.
|
||||
* No iterator invalidation.
|
15
src/why-rust/modern.md
Normal file
15
src/why-rust/modern.md
Normal file
@ -0,0 +1,15 @@
|
||||
# Modern Features
|
||||
|
||||
Rust is built with all the experience gained in the last 40 years.
|
||||
|
||||
## Language Features
|
||||
|
||||
* Enums and pattern matching.
|
||||
* Generics.
|
||||
* No overhead FFI.
|
||||
|
||||
## Tooling
|
||||
|
||||
* Great compiler errors.
|
||||
* Built-in dependency manager.
|
||||
* Built-in support for testing.
|
6
src/why-rust/runtime.md
Normal file
6
src/why-rust/runtime.md
Normal file
@ -0,0 +1,6 @@
|
||||
# Runtime Guarantees
|
||||
|
||||
No undefined behavior at runtime:
|
||||
|
||||
* Array access is bounds checked.
|
||||
* Integer overflow is defined.
|
Reference in New Issue
Block a user