Cargo Features

pelite = { version = "0.10.0", default-features = false, features = ["std", "unsafe_alignment", "mmap", "unstable", "derive_pod", "resources_nostd", "serde", "data-encoding"] }
default = derive_pod, mmap

These default features are set whenever pelite is added without default-features = false somewhere in the dependency tree.

std mmap

Enables std of no-std-compat

Affects util::shannon_entropy, pelite::resources, pe::Pe.resources

mmap default = libc, std, winapi

Affects pe::headers_mut

derive_pod default

Enables derive_pod of dataview

resources_nostd = hashbrown

Affects pelite::resources, pe::Pe.resources

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde implicit feature

With derive and default (std)

Affects pe::PeObject.serde_name

data-encoding implicit feature

With default (std)

hashbrown resources_nostd?

Enables default features of hashbrown ^0.8.0

libc cfg(unix) mmap

With default (std)

winapi cfg(windows) mmap

With fileapi, memoryapi and handleapi