Cargo Features

[dependencies]
lightweight-mmap = { version = "0.3.0", default-features = false, features = ["std", "c-exports", "mmap", "no-format", "trim-file-lengths"] }
default = mmap, std

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

std default
c-exports

Feature for enabling C library exports. (Test code build size)

Affects lightweight-mmap::exports

mmap default

Enables memory mapping operations.
When this is disabled, library can only be used to open file handles.
When this is enabled, library can be used to open file handles, and extra data for fast opening of mmap(s) may be stored inside each handle depending on platform.

Affects lightweight-mmap::mmap

no-format

Skips core::fmt formatting machinery where possible.

Enables itoa and nanokit

trim-file-lengths

Trims the lengths of memory maps up to the size of the file, ensuriung mapping cannot go beyond. At slight cost of map open time.