Cargo Features

r-efi-alloc has no features set by default.

[dependencies]
r-efi-alloc = { version = "1.0.0", features = ["allocator_api", "examples", "rustc-dep-of-std"] }
allocator_api

Use the unstable allocator_api feature of the standard library to provide an allocator with the core::alloc::Allocator trait.

examples

We feature-gate all examples, since they will not link correctly, unless you use a UEFI target configuration. To make cargo test work, we exclude all examples from normal runs.

rustc-dep-of-std = core

This feature-gate is a requirement to integrate crates into the dependency tree of the standard library. Use outside of the standard library is not supported.

Enables rustc-dep-of-std of compiler_builtins

Required setup to build as part of rustc.

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.

compiler_builtins rustc-dep-of-std?
core rustc-dep-of-std?

Enables rustc-std-workspace-core