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.
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.
Limit file operations and
mmap
feature to environments with standard library. Otherwise, do not depend on it. This also requires limitingstd::error::Error
implementation in error types only in std environments. Other than that, we are pulling Google's hashbrown, sincealloc::collections
does not include HashMap.