This is Pulsar producer sample code, an analogy of Python producer code.
$ docker run -it \
-p 6650:6650 \
-p 8080:8080 \
-v $PWD/data:/pulsar/data \
apachepulsar/pulsar:2.2.0 \
bin/pulsar standalone
$ git clone https://github.com/quiye/pulsar-rust-websocket-client.git
$ cd pulsar-rust-websocket-client
$ cargo run
then,
Got message: {"result":"ok","messageId":"CHcQAg==","context":"5"}
TODO