1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00
examples/other/protobuf
2021-10-06 23:12:42 +01:00
..
src ignore protobuf-example in ci 2021-10-06 23:12:42 +01:00
Cargo.toml ignore protobuf-example in ci 2021-10-06 23:12:42 +01:00
client.py Restructure folders (#411) 2021-02-26 00:57:58 +00:00
README.md fix broken links (#441) 2021-10-06 22:28:53 +01:00
test_pb2.py Restructure folders (#411) 2021-02-26 00:57:58 +00:00
test.proto Restructure folders (#411) 2021-02-26 00:57:58 +00:00

protobuf

Usage

Server

cd other/protobuf
# 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