Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/halfzebra/rust-reqwest-warp-example
- Owner: halfzebra
- Created: 2020-03-05T21:23:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-05T23:05:31.000Z (almost 5 years ago)
- Last Synced: 2025-01-07T13:01:31.886Z (18 days ago)
- Topics: example, rust-lang, server
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```