CasualX / pelite

Lightweight, memory-safe, zero-allocation library for reading and navigating PE binaries.
MIT License
280 stars 42 forks source link

Add no_std support #236

Closed h33p closed 4 years ago

h33p commented 4 years ago

Limit file operations and mmap feature to environments with standard library. Otherwise, do not depend on it. This also requires limiting std::error::Error implementation in error types only in std environments. Other than that, we are pulling Google's hashbrown, since alloc::collections does not include HashMap.

h33p commented 4 years ago

Currently the crate defaults pulling in serde in hashbrown. Due to serde not being a feature, but instead a crate, I would need guidance in which way to remove the sometimes unneeded feature.