Search

1. 러스트 설치하기

러스트 설치 하기

Linux or macOS

$ curl https://sh.rustup.rs -sSf | sh $ source $HOME/.cargo/env $ export PATH="$HOME/.cargo/bin:$PATH"
Shell
복사
rustup --version
Shell
복사

IDE 환경 설정

VSCode

rust-analyzer 설치
crates 설치. 패키지 관리자

Hello World 작성

1.
디렉토리 생성
mkdir hello-world
Shell
복사
2.
초기화
cargo init
Shell
복사
3.
컴파일 & 실행
cargo run build
Shell
복사
4.
실행
cargo run start
Shell
복사