#object #elf #mach-o #pe #coff

object

A unified interface for reading and writing object file formats

32 releases (breaking)

new 0.25.3 Jun 12, 2021
0.24.0 May 1, 2021
0.23.0 Dec 12, 2020
0.22.0 Oct 27, 2020
0.1.0 Aug 20, 2016

#9 in macOS APIs

Download history 259030/week @ 2021-02-24 252828/week @ 2021-03-03 263207/week @ 2021-03-10 257809/week @ 2021-03-17 262503/week @ 2021-03-24 251599/week @ 2021-03-31 265638/week @ 2021-04-07 242692/week @ 2021-04-14 236481/week @ 2021-04-21 235741/week @ 2021-04-28 254130/week @ 2021-05-05 282800/week @ 2021-05-12 271822/week @ 2021-05-19 279025/week @ 2021-05-26 287623/week @ 2021-06-02 261969/week @ 2021-06-09

1,127,981 downloads per month
Used in 2,833 crates (48 directly)

Apache-2.0/MIT

1MB
21K SLoC

object

The object crate provides a unified interface to working with object files across platforms. It supports reading object files and executable files, and writing object files.

For reading files, it provides multiple levels of support:

  • raw struct definitions suitable for zero copy access
  • low level APIs for accessing the raw structs
  • a higher level unified API for accessing common features of object files, such as sections and symbols

Supported file formats: ELF, Mach-O, Windows PE/COFF, Wasm, and Unix archive.

License

Licensed under either of

at your option.

Contribution

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

~135–660KB
~13K SLoC