DEV/Rust
[Rust] Rocket (HTTP Server Freamwork) 설정
아이와사생활_
2022. 3. 19. 16:43
https://rocket.rs/v0.4/guide/quickstart/
Quickstart - Rocket Programming Guide
Before you can start writing a Rocket application, you'll need a nightly version of Rust installed. We recommend you use rustup to install or configure such a version. If you don't have Rust installed and would like extra guidance doing so, see the getting
rocket.rs
rustup default nightly
rustup override set nightly
cargo new hello-rocket --bin
cargo new hello-rocket --bin
cd hello-rocket
hello world 는 찍히는거 같다.
dependencies 에 rocket을 추가한다.
cargo run
hello~
hello 시작