Rust - warp, tokio로 localhost 띄워보기

warp

https://docs.rs/warp/latest/warp/

warp is a super-easy, composable, web server framework for warp speeds. Thanks to its 

Warp 는 rust에서 쓸 수 있는 web server framework 이다.

tokio

https://tokio.rs/

Tokio is an asynchronous runtime for the Rust programming language. It provides the building blocks needed for writing network applications. It gives the flexibility to target a wide range of systems, from large servers with dozens of cores to small embedded devices.

Tokio는 rust에서 async (비동기성)을 지원해주는 라이브러리이다.

네트워크 요청등과 같은 용도로 쓰인다.

실제 rust api로 localhost 띄워보기

https://medium.com/@AlexanderObregon/building-restful-apis-with-rust-and-warp-70a6159fd804

위의 글을 참고했습니다.

https://github.com/coldsurfers/rust-warp-tokio-sample

← Go home