gimli-rs/gimli
A library for reading and writing the DWARF debugging format
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
gimli
gimli is a library for reading and writing the
DWARF debugging format.
-
Zero copy: everything is just a reference to the original input buffer. No copies of the input data get made.
-
Lazy: you can iterate compilation units without parsing their contents. Parse only as many debugging information entry (DIE) trees as you iterate over.
gimlialso usesDW_AT_siblingreferences to avoid parsing a DIE's children to find its next sibling, when possible. -
Cross-platform:
gimlimakes no assumptions about what kind of object file you're working with. The flipside to that is that it's up to you to provide an ELF loader on Linux or Mach-O loader on macOS.- Unsure which object file parser to use? Try the cross-platform
objectcrate. See thegimli-examplescrate for usage withgimli.
- Unsure which object file parser to use? Try the cross-platform
Install
To add a gimli dependency to your Cargo.toml, run:
$ cargo add gimli
The minimum supported Rust version is 1.88.
Documentation
-
Example programs:
-
A simple DWARF converter to read DWARF sections then write them back out again.
-
A DWARF converter that modifies the DWARF by removing entries for dead code.
License
Licensed under either of
- Apache License, Version 2.0 (
LICENSE-APACHEor https://www.apache.org/licenses/LICENSE-2.0) - MIT license (
LICENSE-MITor https://opensource.org/licenses/MIT)
at your option.
Contribution
See CONTRIBUTING.md for hacking.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Similar Projects
Discover other similar projects and AI models.
Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.
An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
✨ Zero-config AI chat assistant. No API key needed — sign up and instantly chat with GPT-5, Claude 4, Gemini 2.5, DeepSeek & 100+ top models. Pay-as-you-go saves you more. Available on Web, iOS, macOS, Android, Linux, Windows.
An awesome list that curates the best Flutter libraries, tools, tutorials, articles and more.
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io