mirror of
https://github.com/actix/examples
synced 2024-11-30 17:14:35 +01:00
443b8197ed
* Update to actix-web 2.0.0 * Add README.md
29 lines
430 B
Markdown
29 lines
430 B
Markdown
# 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
|
|
```
|