### Start MQTT Broker for Examples Source: https://github.com/eclipse-uprotocol/up-transport-mqtt5-rust/blob/main/README.md Launches the Eclipse Mosquitto MQTT broker using Docker Compose, which is a prerequisite for running the publisher and subscriber examples. ```bash docker compose -f tests/mosquitto/docker-compose.yaml up --detach ``` -------------------------------- ### Run Publisher and Subscriber Examples Source: https://github.com/eclipse-uprotocol/up-transport-mqtt5-rust/blob/main/README.md Demonstrates how to run the publisher and subscriber examples provided with the library. These examples showcase publishing and consuming uProtocol messages via MQTT 5. Help flags are shown for configuration. ```bash cargo run --example subscriber_example -- --help cargo run --example subscriber_example cargo run --example publisher_example -- --help cargo run --example publisher_example ``` -------------------------------- ### Build and Test Rust Library Source: https://github.com/eclipse-uprotocol/up-transport-mqtt5-rust/blob/main/README.md Commands for building the Rust library and running its associated tests. These are standard Cargo commands for Rust projects. ```bash cargo build cargo test ``` -------------------------------- ### Clone uProtocol Rust Repository Source: https://github.com/eclipse-uprotocol/up-transport-mqtt5-rust/blob/main/README.md Clones the main uProtocol Rust repository, ensuring all necessary git submodules, including the uProtocol specification, are initialized. This is crucial for tracing requirements and testing. ```sh git clone --recurse-submodules git@github.com:eclipse-uprotocol/up-rust ``` -------------------------------- ### Update Git Submodules Source: https://github.com/eclipse-uprotocol/up-transport-mqtt5-rust/blob/main/README.md Provides commands to initialize or update git submodules, ensuring the uProtocol specification files are up-to-date. It also explains how to configure Git to always pull submodules recursively. ```sh git submodule update --init --recursive git pull --recurse-submodules ``` -------------------------------- ### Add uProtocol Dependencies to Cargo.toml Source: https://github.com/eclipse-uprotocol/up-transport-mqtt5-rust/blob/main/README.md Specifies the necessary dependencies to include in a Rust project's Cargo.toml file to utilize the uProtocol MQTT 5 transport library. ```toml [dependencies] up-rust = { version = "0.7" } up-transport-mqtt5 = { version = "0.3" } ``` -------------------------------- ### Configure VS Code for Coverage Gutters in Rust Projects Source: https://github.com/eclipse-uprotocol/up-transport-mqtt5-rust/blob/main/CONTRIBUTING.md This JSON configuration snippet is for the VS Code Coverage Gutters extension. It specifies the base directory for coverage reports and the filenames to look for, particularly 'lcov.info' generated by tarpaulin for Rust projects. ```json { "coverage-gutters.coverageBaseDir": "**", "coverage-gutters.coverageFileNames": [ "target/tarpaulin/lcov.info" ] } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.