{"id":30130810,"url":"https://github.com/samscott89/rudy","last_synced_at":"2025-08-10T18:13:00.948Z","repository":{"id":301977042,"uuid":"992869552","full_name":"samscott89/rudy","owner":"samscott89","description":"A Toolchain for Rust Debuginfo","archived":false,"fork":false,"pushed_at":"2025-08-09T19:27:23.000Z","size":14628,"stargazers_count":102,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T19:33:20.376Z","etag":null,"topics":["debugging","rust"],"latest_commit_sha":null,"homepage":"https://www.samjs.io/blog/rudy","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samscott89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-29T20:59:00.000Z","updated_at":"2025-08-09T17:58:55.000Z","dependencies_parsed_at":"2025-07-17T01:27:32.009Z","dependency_job_id":"fed412cd-a234-44cc-937b-bb8eb278a8a8","html_url":"https://github.com/samscott89/rudy","commit_stats":null,"previous_names":["samscott89/rudy"],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/samscott89/rudy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samscott89%2Frudy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samscott89%2Frudy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samscott89%2Frudy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samscott89%2Frudy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samscott89","download_url":"https://codeload.github.com/samscott89/rudy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samscott89%2Frudy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269649731,"owners_count":24453533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debugging","rust"],"created_at":"2025-08-10T18:06:43.191Z","updated_at":"2025-08-10T18:13:00.913Z","avatar_url":"https://github.com/samscott89.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\".github/assets/logo-256.png\" alt=\"Rudy Logo\" width=\"48\" align=\"left\" style=\"margin-right: 10px\"\u003e Rudy\n\n\u003cbr clear=\"left\"/\u003e\n\n[![Crates.io](https://img.shields.io/crates/v/rudy-db.svg)](https://crates.io/crates/rudy-db)\n[![Documentation](https://docs.rs/rudy-db/badge.svg)](https://docs.rs/rudy-db)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA Rust library for interacting with debugging information of compiled artifacts using DWARF format. Provides lazy evaluation and incremental computation for long-running processes like debuggers.\n\n⚠️ **Experimental Status**: This library is in early development (0.0.x). The API is unstable and subject to breaking changes.\n\n\n\u003e [!IMPORTANT]\n\u003e See the [announcement post](https://www.samjs.io/blog/rudy) for more on the rationale/design behind Rudy.\n\n## LLDB Extension\n\nWe also provide an example `rudy-lldb` extension that brings the capabilities of `rudy-db` to the `lldb` debugger.\n\nHere's a short demo:\n\n[![rudy-lldb demo](https://asciinema.org/a/CfSY9cLqPwkkB1qxPJrLA302D.svg)](https://asciinema.org/a/CfSY9cLqPwkkB1qxPJrLA302D)\n\n### Installation (rudy-lldb)\n\n**Quick Install**:\n```bash\ncargo install rudy-lldb\nrudy-lldb-server install\n```\n\nThis will download the LLDB client script and configure your `~/.lldbinit` automatically.\n\n**Manual Install**:\n- Install `rudy-lldb` from source: `cargo install rudy-lldb`\n- Download the client: `curl https://raw.githubusercontent.com/samscott89/rudy/main/rudy-lldb/python/rudy_lldb.py -o ~/.lldb/rudy_lldb.py`\n- Add to `~/.lldbinit`: `echo \"command script import ~/.lldb/rudy_lldb.py\" \u003e\u003e ~/.lldbinit`\n\n**Server Management**: The rudy-lldb server will automatically start when you run your first `rd` command in LLDB. You can also manage it manually:\n- `rudy-lldb-server start` - Start the server\n- `rudy-lldb-server stop` - Stop the server\n- Set `RUDY_AUTOSTART=0` to disable automatic server startup\n\n\n## Architecture\n\n- **Low-level DWARF parsing** (`rudy-dwarf`) - Parser combinators and visitor patterns abstracting gimli\n- **High-level API** (`rudy-db`) - `DebugInfo` wrapper with salsa-based incremental caching  \n- **LLDB integration** (`rudy-lldb`) - RPC server for interactive debugging\n\n## Features\n\n- Lazy evaluation using [salsa](https://github.com/salsa-rs/salsa) for incremental computation\n- Low-level DWARF parser combinators and visitor structs\n- Higher-level `DebugInfo` wrapper for common debugging operations\n- Cross-platform support (x86_64, aarch64 on macOS, Linux)\n\n\n## Basic Usage (rudy-db)\n\nHere's a simple example of loading a binary and resolving type information from a memory address:\n\n```rust\nuse rudy_db::DebugDb;\nuse anyhow::Result;\n\nfn main() -\u003e Result\u003c()\u003e {\n    // Create a new database\n    let mut db = DebugDb::new();\n\n    // Get debug information for a binary\n    let debug_info = DebugInfo::new(\u0026db, \"/path/to/binary\")?;\n    \n    // Find a function by name\n    let function = db.find_function_by_name(\"my_function\")?;\n\n    // get all params:\n    for param in \u0026function.params {\n        println!(\"Param: {:?} with type: {}\", param.name, param.ty.display_name());\n    }\n    \n    Ok(())\n}\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- Built on top of [gimli](https://github.com/gimli-rs/gimli) for DWARF parsing\n- Uses [salsa](https://github.com/salsa-rs/salsa) for incremental computation\n\n---\n\n**Note**: This is an experimental project. Please report any issues or feature requests on our [GitHub issue tracker](https://github.com/samscott89/rudy/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamscott89%2Frudy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamscott89%2Frudy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamscott89%2Frudy/lists"}