RUST 를 시작해보자

Rust DEVELOPMENT IT

요새 자의 타의에 의해 이것저것 많이 접하게 된다.

설치

1
curl https://rs.rustup.rs -sSf | sh

터미널 재시작 or

1
. $HOME/.cargo/env

업데이트

1
rustup update

삭제

1
rustup self uninstall

로컬 문서 서버 실행

1
rustup doc

러스트 컴파일

1
rustc filename.rs

코드 포매팅 (linting)

1
rustfmt filename.rs

기타

1
2
러스트의 들여쓰기는 tab이 아닌 들여쓰기 4개.
println! => println! 매크로를 호출한다. 매크로란 무엇인가~? (차후 링크)