Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/halfzebra/rust-reqwest-warp-example

🦀 😎 Rust HTTP server basics with async-await
https://github.com/halfzebra/rust-reqwest-warp-example

example rust-lang server

Last synced: 5 days ago
JSON representation

🦀 😎 Rust HTTP server basics with async-await

Awesome Lists containing this project

README

        

# rust-reqwest-warp-example

[Jump to source 🦅](src/main.rs)

This repo is an example of combining [warp](https://github.com/seanmonstar/warp) server library with [reqwest](https://github.com/seanmonstar/reqwest) HTTP client using async-await syntax.
Basic logging setup included.

## Running

With logging output for maximum comfort:

```bash
RUST_LOG=info cargo run
```

To hack on it([cargo-watch](https://github.com/passcod/cargo-watch) recommended):

```bash
cargo watch -x run
```