This has a few motivations: * Move the big blocks of code dedicated to providing human readable strings for gabi constants out of the way. This code can be long and distracting from the actual parsing functionality. * Allow users to opt out of this functionality if they don't need it. The big blocks of &'static str definitions can add a fair amount to the resulting library size. For users who are trying to optimize for library size, these to_str methods are often unneeded. * The to_str method's Option return value allows users to decide how they want to display unknown values.
23 lines
510 B
TOML
23 lines
510 B
TOML
[package]
|
|
name = "elf"
|
|
version = "0.5.0"
|
|
authors = ["Christopher Cole <chris.cole.09@gmail.com>"]
|
|
license = "MIT/Apache-2.0"
|
|
repository = "https://github.com/cole14/rust-elf/"
|
|
documentation = "https://docs.rs/elf/latest/elf/"
|
|
description = "A pure-rust library for parsing ELF files"
|
|
keywords = ["binary", "elf", "object", "parser"]
|
|
categories = ["no-std", "os", "embedded"]
|
|
readme = "README.md"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "elf"
|
|
|
|
[dependencies]
|
|
|
|
[features]
|
|
default = ["std", "to_str"]
|
|
std = []
|
|
to_str = []
|