### Add nexus-rs dependency to Cargo.toml Source: https://github.com/zerthox/nexus-rs/blob/main/README.md This snippet shows how to add the nexus-rs library as a dependency to your project's Cargo.toml file using a Git repository. Ensure you have Rust and Cargo installed. ```toml nexus = { git = "https://github.com/zerthox/nexus-rs" } ``` -------------------------------- ### Basic Addon Initialization and Rendering with Nexus-rs Source: https://github.com/zerthox/nexus-rs/blob/main/README.md This Rust code demonstrates the basic structure for creating a Nexus addon using the nexus-rs library. It registers a render callback to display 'Hello World' in an ImGui window. This requires the 'nexus' crate to be added as a dependency. ```rust use nexus::{ gui::{register_render, render, RenderType}, imgui::Window, }; nexus::export! { name: "My Addon", signature: -0x12345678, load: || { register_render(RenderType::Render, render!(|ui| { Window::new("My Window").build(ui, || { ui.text("Hello World"); }); })); }, } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.