39 releases (breaking)

0.31.1 Oct 4, 2024
0.31.0 Jul 16, 2024
0.30.0 May 26, 2024
0.28.1 Nov 24, 2023
0.3.0 Jul 27, 2016

#6 in Parser implementations

Download history 1679594/week @ 2024-08-04 1764369/week @ 2024-08-11 1777675/week @ 2024-08-18 1764692/week @ 2024-08-25 1719784/week @ 2024-09-01 1855872/week @ 2024-09-08 1710245/week @ 2024-09-15 1868312/week @ 2024-09-22 1875045/week @ 2024-09-29 1965983/week @ 2024-10-06 1903475/week @ 2024-10-13 1986442/week @ 2024-10-20 1901773/week @ 2024-10-27 1990595/week @ 2024-11-03 1927499/week @ 2024-11-10 1812664/week @ 2024-11-17

7,749,987 downloads per month
Used in 34,641 crates (94 directly)

MIT/Apache

1.5MB
36K SLoC

gimli

Build Status Coverage Status

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. gimli also uses DW_AT_sibling references to avoid parsing a DIE's children to find its next sibling, when possible.

  • Cross-platform: gimli makes 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 object crate. See the gimli-examples crate for usage with gimli.

Install

Add this to your Cargo.toml:

[dependencies]
gimli = "0.31.1"

The minimum supported Rust version is:

  • 1.60.0 for the read feature and its dependencies.
  • 1.65.0 for other features.

Documentation

License

Licensed under either of

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.

Dependencies