1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

Update protobuf to actix-web 2.0.0 (#249)

* Update to actix-web 2.0.0

* Add README.md
This commit is contained in:
Elliot Jackson
2020-02-06 18:17:23 +01:00
committed by GitHub
parent d59129c212
commit 443b8197ed
6 changed files with 69 additions and 50 deletions

28
protobuf/README.md Normal file
View File

@ -0,0 +1,28 @@
# protobuf
## Usage
### Server
```shell
# From workspace
cargo run --bin protobuf-example
# From ./protobuf
cargo run
```
### Client
```shell
# Dependencies
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.11.2/protobuf-python-3.11.2.zip
unzip protobuf-python-3.11.2.zip
cd protobuf-3.11.2/python/
python3 setup.py install
pip3 install --upgrade pip
pip3 install aiohttp
# Client
python3 client.py
```