mirror of
https://github.com/actix/examples
synced 2024-11-24 23:02:59 +01:00
8186a8cfea
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru> Co-authored-by: Altug Sahin <altugsahin@gmail.com> Co-authored-by: Rob Ede <robjtede@icloud.com>
30 lines
448 B
Markdown
30 lines
448 B
Markdown
# protobuf
|
|
|
|
## Usage
|
|
|
|
### Server
|
|
|
|
```shell
|
|
cd other/protobuf
|
|
# 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
|
|
```
|