| Crates.io | goblin-experimental |
| lib.rs | goblin-experimental |
| version | 0.1.1 |
| created_at | 2025-03-26 05:16:16.414771+00 |
| updated_at | 2025-03-27 20:36:35.708007+00 |
| description | (Experimental) An impish, cross-platform, ELF, Mach-o, and PE binary parsing and loading crate |
| homepage | |
| repository | https://github.com/kkent030315/goblin-experimental |
| max_upload_size | |
| id | 1606176 |
| size | 1,142,744 |
WARNING: This crate is basically a copy of goblin, but may include experimental changes!
While I maintain backward-compatible changes as well as the original goblin, this crate includes upcoming bug fixes and features that enrich your experience.

https://docs.rs/goblin-experimental/
Goblin requires rustc 1.63.0 1.65.0 (Rust 2021 edition).
Add to your Cargo.toml
[dependencies]
goblin-experimental = "0.1"
libgoblin aims to be your one-stop shop for binary parsing, loading, and analysis.
Goblin primarily supports the following important use cases:
Core, std-free #[repr(C)] structs, tiny compile time, 32/64 (or both) at your leisure.
Type punning. Define a function once on a type, but have it work on 32 or 64-bit variants -
without really changing anything, and no macros! See examples/automagic.rs for a basic example.
std mode. This throws in read and write impls via Pread and Pwrite, reading from file,
convenience allocations, extra methods, etc. This is for clients who can allocate and want to
read binaries off disk.
Endian_fd. A truly terrible name :laughing: this is for binary analysis like in panopticon
or falcon which needs to read binaries of foreign endianness, or as a basis for
constructing cross platform foreign architecture binutils, e.g. cargo-sym and bingrep are
simple examples of this, but the sky is the limit.
Here are some things you could do with this crate (or help to implement so they could be done):
Pwrite derived).no_std cfg. I.e., it is essentially just
struct and const defs (like a C header) - no fd, no output, no std.libgoblin is designed to be massively configurable. The current flags are:
repr(C) struct defsrepr(C) struct defsrepr(C) struct defsrepr(C) struct defsrepr(C) struct defsrepr(C) struct defsrepr(C) struct defsno_std environmentsThank you all :heart: !
In lexicographic order:
Unless explicitly stated otherwise, you agree that your contributions are licensed as described in the accompanying LICENSE file (MIT).