More actions
({CREATE}) |
No edit summary |
||
| Line 35: | Line 35: | ||
** nightly | ** nightly | ||
== playground== | == playground == | ||
* https://play.rust-lang.org | * https://play.rust-lang.org | ||
* https://repl.it | * https://repl.it | ||
= Hello, rust = | |||
``` | |||
fn main(){ | |||
println!("Hello World"); | |||
} | |||
``` | |||
``` | |||
fn main() { | |||
let language = "rust"; | |||
println!("Hello, {}", language); | |||
} | |||
``` | |||
Revision as of 16:34, 28 June 2018
.rs
feature
- zero-cost abstractions
- move semantics
- guaranteed memory safety
- threads without data races
- trait-based generics
- pattern matching
Fast
- LLVM
- Compile to binary
- no GC
- minimal runtime
Prevent segfaults
- No dangling pointer
- No null pointer
- No segfault
thread safety
- No data race
- Ownership guarantee
- hard to compile
Cargo
- The Rust package manager
- downloads dependencies
Rustup
- Rust toolchain installer
- stable
- beta
- nightly
playground
Hello, rust
``` fn main(){
println!("Hello World");
} ```
``` fn main() {
let language = "rust";
println!("Hello, {}", language);
} ```