Cargo Features

[dependencies]
compiler_builtins = { version = "0.1.157", default-features = false, features = ["c", "no-asm", "no-f16-f128", "compiler-builtins", "mem", "mangled-names", "rustc-dep-of-std", "unstable-public-internals"] }
default = compiler-builtins

The compiler-builtins feature is set by default whenever compiler_builtins is added without default-features = false somewhere in the dependency tree.

c build

Enable compilation of C code in compiler-rt, filling in some more optimized implementations and also filling in unimplemented intrinsics

Enables cc

no-asm

Workaround for the Cranelift codegen backend. Disables any implementations which use inline assembly and fall back to pure Rust versions (if avalible).

no-f16-f128

Workaround for codegen backends which haven't yet implemented f16 and f128 support. Disabled any intrinsics which use those types.

compiler-builtins default rustc-dep-of-std?

Flag this library as the unstable compiler-builtins lib

mem

Generate memory-related intrinsics like memcpy

mangled-names

Mangle all names so this can be linked in with other versions or other compiler-rt implementations. Also used for testing

rustc-dep-of-std = compiler-builtins

Only used in the compiler's build system

Enables rustc-std-workspace-core

For more information on this dependency see https://github.com/rust-lang/rust/tree/master/library/rustc-std-workspace-core

unstable-public-internals

This makes certain traits and function specializations public that are not normally public but are required by the builtins-test

Affects libm_math::support