Cargo Features
[dependencies]
lightweight-mmap = { version = "0.4.2", 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
somewhere in the dependency tree.default-features = false - 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.
- 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.