Introduction to Rust
Publish date: Jul 26, 2021
Last updated: Jul 26, 2021
Last updated: Jul 26, 2021
본 글은 Rust 공식문서의 튜토리얼 내용을 정리한 글입니다.
rust lang 특징
- Rust programming language is fundamentally about empowerment
- “systems-level” without taking on the customary risk of crashes or security holes, and without having to learn the fine points of a fickle toolchain. the language is designed to guide you naturally towards reliable code that is efficient in terms of speed and memory usage.
- introducing parallelism in Rust is a relatively low-risk operation: the compiler will catch the classical mistakes for you
- Rust isn’t limited to low-level systems programming - CLI apps, web servers, and many other kinds of code
rust lang 사용처
- Rust is proving to be a productive tool for collaborating among large teams of developers with varying levels of systems programming knowledge. - the compiler plays a gatekeeper role by refusing to compile code with these elusive bugs, including concurrency bugs
rust lang 목차
- Hello, world!
- small toy code (project1)
- comparison with other languages (챕터 3 이후에 챕터 2로 돌아오는걸 권장 - 디테일하게 적용가능)
- ownership에 대해서
- method
- enums, if,match, custom types
- module system for privacy, make API
- vectors, strings, hash maps
- error-handling
- generics, traits, lifetimes
- testing
- own implementation (project2)
- closure, iterators - came from functional programming
- cargo in more depth, sharing libraries with others
- smart pointers, traits
- different models of concurrent programming, multiple threads fearlessly
- rust idioms vs oop principles
- ref on patterns and pattern matching
- smorgasbord(뷔페?), unsafe-rust, macros, more about lifetimes,traits,functions,closures
- low-level multithreaded web server (project3)
Rustaceans
- a silly nickname we call ourselves
진행상황
- https://doc.rust-lang.org/book/ch01-03-hello-cargo.html
- cargo.toml 부터 다시