Features of Rust
-
1. High Performance: Designed to be efficient and fast with low level control over resources.
2. Concurrency: Better wrt C++
3. Memory safety: Uses Ownership and borrowing without runtime overhead.
4. Zero cost Abstraction: Code optimization is done by complier, hence 0 cost.
5. Macros: macros generates optimized code.
6. Error Reporting: Improved wrt C++. Provides more detialed information with colors.
7. Lifetime: Describes relationships between data and its lifetime. Its a sort of label attached by compiler to check validity of variable.