1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00
examples/protobuf
Elliot Jackson 443b8197ed
Update protobuf to actix-web 2.0.0 (#249)
* Update to actix-web 2.0.0

* Add README.md
2020-02-07 02:17:23 +09:00
..
src Update protobuf to actix-web 2.0.0 (#249) 2020-02-07 02:17:23 +09:00
Cargo.toml Update protobuf to actix-web 2.0.0 (#249) 2020-02-07 02:17:23 +09:00
client.py Update protobuf to actix-web 2.0.0 (#249) 2020-02-07 02:17:23 +09:00
README.md Update protobuf to actix-web 2.0.0 (#249) 2020-02-07 02:17:23 +09:00
test_pb2.py Update protobuf to actix-web 2.0.0 (#249) 2020-02-07 02:17:23 +09:00
test.proto actix examples in actix release version 2018-04-13 09:18:42 +08:00

protobuf

Usage

Server

# From workspace
cargo run --bin protobuf-example

# From ./protobuf
cargo run

Client

# 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