### Start Standalone Apache Pulsar Source: https://github.com/streamnative/pulsar-rs/blob/master/examples/README.md Use this command to start a local Apache Pulsar instance using Docker. Ensure Docker is installed and running. ```bash docker run -it \ -p 6650:6650 \ -p 8080:8080 \ --mount source=pulsardata,target=/pulsar/data \ --mount source=pulsarconf,target=/pulsar/conf \ apachepulsar/pulsar:2.10.0 \ bin/pulsar standalone ``` -------------------------------- ### Run Consumer Example Source: https://github.com/streamnative/pulsar-rs/blob/master/examples/README.md Execute the consumer example using Cargo. This requires a running Apache Pulsar instance. ```bash RUST_LOG=info cargo run --release --example consumer ``` -------------------------------- ### Run Producer Example Source: https://github.com/streamnative/pulsar-rs/blob/master/examples/README.md Execute the producer example using Cargo. This requires a running Apache Pulsar instance. ```bash RUST_LOG=info cargo run --release --example producer ``` -------------------------------- ### Add pulsar-rs Dependencies to Cargo.toml Source: https://github.com/streamnative/pulsar-rs/blob/master/README.md Include these dependencies in your Cargo.toml file to use the pulsar-rs library with Tokio. ```toml futures = "0.3" pulsar = "6.3.1" tokio = "1.0" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.