1
0
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:
Martin Geisler
2022-12-21 16:36:30 +01:00
commit c212a473ba
252 changed files with 8047 additions and 0 deletions

View 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
View 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
View File

@ -0,0 +1,6 @@
# Runtime Guarantees
No undefined behavior at runtime:
* Array access is bounds checked.
* Integer overflow is defined.