mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 02:54:25 +00:00
Moves the header pieces of Craft Anything's crates/formats/src/elf.rs into a pure-Rust crate: the class/endian-aware reader, program_headers, ProgramHeader, dynamic_entries, va_to_off, and the segment type, permission and dynamic tag names. Mitigations, dynamic symbols, symbol versions and core-file notes stay in the app. Part of #778. Co-authored-by: BFlat <bombayapirat@gmail.com> Co-authored-by: Brandon Thomas <echelon@gmail.com> Co-authored-by: GGWA <65288322+rech4210@users.noreply.github.com>
24 lines
738 B
TOML
24 lines
738 B
TOML
[package]
|
|
name = "craft-elf"
|
|
description = "ELF program headers and dynamic section entries from hostile bytes, from Craft Anything: 32/64-bit, either byte order, with bounded counts and overflow-checked offsets, plus segment, permission and dynamic tag names. Pure Rust, no I/O."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
thiserror = { workspace = true }
|
|
# `serde`: `Serialize` on `ProgramHeader` (addresses as `0x…` strings), for apps that report
|
|
# segments as JSON.
|
|
serde = { workspace = true, optional = true }
|
|
|
|
[features]
|
|
serde = ["dep:serde"]
|
|
|
|
[dev-dependencies]
|
|
serde_json = { workspace = true }
|