Goblin, or libgoblin, is a Rust library for parsing and loading data. Use this tag for questions that involve using the libgoblin library.
Questions tagged [rust-goblin]
2 questions
1
vote
1 answer
How do I use goblin's Elf::parse with a temporary variable?
I'm trying to iterate over a series of filenames and parse the corresponding files.
My Cargo.toml:
[package]
name = "fold"
version = "0.1.0"
authors = ["Akshat Mahajan"]
edition = "2018"
# See more keys and their definitions at…

Akshat Mahajan
- 9,543
- 4
- 35
- 44
0
votes
0 answers
Cannot return value referencing function parameter when parsing a list of ELFs with goblin
I'm attempting to parse a series of files corresponding to filenames into ELF objects using the goblin crate:
use goblin::elf::Elf;
use std::error::Error;
use std::fs;
fn main() -> Result<(), Box> {
let files =…

Akshat Mahajan
- 9,543
- 4
- 35
- 44