How meehl/rusty-path-of-building works
Rusty Path of Building is a native runtime for Path of Building 1 and 2. The user selects a game at launch; the app opens either the installer or the PoB runtime, which runs the game’s Lua scripts and presents their interactive interface. The runtime bridges Lua callbacks and APIs to window, input, clipboard, text, and rendering facilities. The README also documents automatic asset updates and platform support. The graph preserves documented product capabilities, but some subsystem links are omitted where the sampled source does not establish the call path.
Main entry points: api.rs Lua API registration · app.rs Application lifecycle · pob.rs PoB runtime · renderer.rs Renderer
Components 23
Application runtime
- Command-line launch
src/main.rs - Application lifecycle
src/app.rs - Asset installer
src/installer.rs - GitHub downloads
src/installer/download.rs
PoB and Lua
- PoB runtime
src/pob.rs - Lua API registration
src/pob/api.rs - Lua callbacks
src/pob/api/callback.rs - Lua rendering API
src/pob/api/rendering.rs - Lua text API
src/pob/api/text.rs - Lua image handles
src/pob/api/image_handle.rs - Lua file search
src/pob/api/search_handle.rs - Lua subscripts
src/pob/subscript.rs
Graphics and text
- Graphics context
src/gfx.rs - Renderer
src/renderer.rs - Image processing
src/renderer/image.rs - Texture registry
src/renderer/textures.rs - Font system
src/fonts.rs - Glyph atlas
src/fonts/atlas.rs
Platform services
- Window integration
src/window.rs - Input handling
src/input.rs - Clipboard
src/clipboard.rs - Image worker pool
src/worker_pool.rs
Other components
- User
Connections 19
- User → Command-line launch: launches
README.md - Command-line launch → Application lifecycle: creates
src/main.rs - Application lifecycle → PoB runtime: starts runtime
src/app.rs - Application lifecycle → Asset installer: starts installer
src/app.rs - Asset installer → GitHub downloads: downloads with
src/installer.rs - PoB runtime → Lua API registration: registers
src/pob.rs - PoB runtime → Lua subscripts: manages
src/pob.rs - Lua API registration → Lua callbacks: registers
src/pob/api.rs - Lua API registration → Lua rendering API: registers
src/pob/api.rs - Lua API registration → Lua text API: registers
src/pob/api.rs - Lua API registration → Lua image handles: registers
src/pob/api.rs - Lua API registration → Lua file search: registers
src/pob/api.rs - Application lifecycle → Graphics context: creates
src/app.rs - Graphics context → Renderer: renders with
src/renderer.rs - Renderer → Image processing: uses
src/renderer.rs - Renderer → Texture registry: uses
src/renderer.rs - Texture registry → Image processing: loads
src/renderer/textures.rs - Texture registry → Image worker pool: dispatches loads
src/renderer/textures.rs - Font system → Glyph atlas: uses
src/fonts.rs