Cargo Features

basic_allocator has no features set by default.

[dependencies]
basic_allocator = { version = "0.1.6", features = ["use_libc"] }
use_libc = errno, libc, sysconf

Affects allocators::LibcHeapGrower

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

libc use_libc?

Enables libc

libc is used to get pages of virtual memory from the Unix OS

sysconf use_libc?

Enables sysconf

sysconf tells us the size of a page

errno use_libc?

Enables errno ^0.2

errno tells us what errors libc produced