About rust lang
· β 1 min read
Rust Open-source language; 6000 contributors. MIT and Apache License
https://doc.rust-lang.org https://play.rust-lang.org 1 2 3 fn main() { println!("Hello!"); } rustc main.rs // create main.exe
main.exe
Creating projects:
cargo new hello
structure created: /src/main.rs /.toml (dependencies), /.gitignore
cargo run
cargo run build
Focuses to be safe, secure, concurrent with combination of
Static typing: prevent errors at compile time
compiler is very strict: reliable and have fewer bugs
it catches a lot of errors that would normally go unnoticed: no never used variable possible Dynamic typing: flexibility and easier refactoring Ownership and borrowing: ensure that data is accessed safely and efficiently Modern syntax and design, a mixture of assembler and a functional programming language, and it looks very strange to the uninitiated.