#dwarf #dwp #dwarf-package #dwarf-object #split-dwarf

thorin-dwp

Library for building DWARF packages from input DWARF objects and packages

8 releases (breaking)

0.7.0 Aug 14, 2023
0.6.0 Apr 21, 2023
0.5.0 Feb 22, 2023
0.4.0 Jan 9, 2023
0.1.1 Dec 18, 2021

#49 in Debugging

Download history 8605/week @ 2023-12-23 7246/week @ 2023-12-30 9795/week @ 2024-01-06 9546/week @ 2024-01-13 9714/week @ 2024-01-20 12024/week @ 2024-01-27 17133/week @ 2024-02-03 16571/week @ 2024-02-10 16584/week @ 2024-02-17 14077/week @ 2024-02-24 15723/week @ 2024-03-02 17191/week @ 2024-03-09 16479/week @ 2024-03-16 16030/week @ 2024-03-23 15311/week @ 2024-03-30 12814/week @ 2024-04-06

63,054 downloads per month
Used in thorin-dwp-bin

MIT/Apache

88KB
1.5K SLoC

thorin

thorin is an DWARF packaging utility for creating DWARF packages (*.dwp files) out of input DWARF objects (*.dwo files; or *.o files with .dwo sections), supporting both the pre-standard GNU extension format for DWARF packages and the standardized format introduced in DWARF 5.

thorin was written as part of the implementation of Split DWARF in rustc. A Rust implementation of a DWARF packaging utility is easier to integrate into the compiler and can support features like loading dwarf objects from archive files (or rustc's rlibs) which are helpful in supporting cross-crate Split DWARF packaging in rustc.

Usage

To use thorin in your own project, add it to your Cargo.toml:

thorin-dwp = "0.7.0"

See the thorin-bin crate for an example of using thorin's library interface.

Stability

thorin's library interface is intended for use by rustc for its Split DWARF support, it currently comes with no stability guarantees and may change at any time.


Name

thorin is named after Thorin Oakenshield from The Hobbit, as Thorin is a dwarf who leads other dwarves. thorin uses the gimli library (named after a dwarf from Lord of the Rings) to read DWARF format debug information, the name of which is a medieval fantasy complement to ELF, the file format for executables and object files.
You could also call this project rust-dwp, if you'd prefer that.

Author and acknowledgements

thorin is authored by David Wood of Huawei Technologies Research & Development (UK) Ltd. thorin is maintained by the Rust Compiler Team.
In addition, thanks to the authors of object and gimli, on which this utility depends heavily; and to Philip Craig for advice and reviews during initial implementation of thorin.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Code of conduct

When contributing or interacting with this project, we ask abide the Rust Code of Conduct and ask that you do too.

Dependencies

~7.5MB
~142K SLoC