### Generate API Documentation for up-rust Source: https://github.com/eclipse-uprotocol/up-rust/blob/main/README.md Generate API documentation for the up-rust crate using the `cargo doc` command. This command, with the `--no-deps`, `--all-features`, and `--open` flags, builds documentation for all features without external dependencies and opens it in your default browser. ```sh cargo doc --no-deps --all-features --open ``` -------------------------------- ### Clone Eclipse uProtocol Rust Repository Source: https://github.com/eclipse-uprotocol/up-rust/blob/main/README.md To build the up-rust library from source, first clone the repository using Git. It is crucial to use the `--recurse-submodules` flag to ensure that the uProtocol type definitions submodule is properly initialized. ```sh git clone --recurse-submodules git@github.com:eclipse-uprotocol/up-rust ``` -------------------------------- ### Configure VSCode for Rust Analyzer Features Source: https://github.com/eclipse-uprotocol/up-rust/blob/main/README.md To instruct VSCode's Rust Analyzer to automatically build all features of the up-rust crate, add the specified configuration to your `./vscode/settings.json` file. This ensures that all available features are considered during development. ```json { "rust-analyzer.cargo.features": "all" } ``` -------------------------------- ### Build Eclipse uProtocol Rust Crate with Cargo Source: https://github.com/eclipse-uprotocol/up-rust/blob/main/README.md After cloning the repository, you can build the up-rust crate using the Cargo package manager. Navigate to the root folder of the cloned repository and execute the `cargo build` command. This command compiles the crate and its dependencies. ```sh cargo build ``` -------------------------------- ### Add up-rust Crate to Cargo.toml Source: https://github.com/eclipse-uprotocol/up-rust/blob/main/README.md To use the up-rust crate in your Rust project, add the following line to the `[dependencies]` section of your `Cargo.toml` file. This specifies the crate and its version. ```toml [dependencies] up-rust = { version = "0.7" } ``` -------------------------------- ### Configure VSCode for Coverage Gutters in Rust Source: https://github.com/eclipse-uprotocol/up-rust/blob/main/CONTRIBUTING.md These VSCode settings enable the Coverage Gutters extension to display code coverage reports generated by tarpaulin for the uProtocol Rust SDK. Ensure tarpaulin is used to generate lcov.info files in the target/tarpaulin directory. ```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.