| What it is | A language empowering everyone to build reliable and efficient software. | A general-purpose programming language and toolchain for maintaining robust, optimal and reusable software | Efficient, expressive, elegant | An open-source, object-oriented, actor-model, capabilities-secure, high-performance programming language |
| Features | - ownership and borrowing checked at compile time
- no garbage collector or runtime
- type inference
- Cargo package manager and build tool
- rustfmt formatter and Clippy linter
- compiles to WebAssembly
- stable release every six weeks with nightly and beta channels
| - comptime: compile-time code execution and lazy evaluation
- drop-in C/C++ compiler with zero dependencies
- cross-compilation out of the box
- zig build: a cross-platform build system
- incremental adoption in C/C++ codebases
- prebuilt toolchains for Linux, macOS, Windows, FreeBSD and NetBSD on many architectures
| - statically typed with local type inference, generics, tuples and sum types
- compiles to C, C++ or JavaScript
- small dependency-free native executables for Windows, Linux, BSD and macOS
- deterministic memory management with destructors and move semantics (ORC by default)
- AST macros, templates and compile-time function evaluation
- zero-overhead iterators
- async/await in the standard library
- easy C, C++ and Objective-C wrapping
- All 9 features
| - actors and an actor-model runtime
- reference capabilities checked by the compiler
- data-race free and deadlock-free, with no locks
- type safe, memory safe, no null and exception-safe
- ahead-of-time compilation to native code
- per-actor garbage collection and ORCA actor collection
- C foreign function interface
- language server, linter and Corral dependency manager
|