Cargo Features

[dependencies]
compiler_builtins = { version = "0.1.139", default-features = false, features = ["c", "no-asm", "no-f16-f128", "compiler-builtins", "mem", "mangled-names", "rustc-dep-of-std", "public-test-deps"] }
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 = cc

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

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, core

Only used in the compiler's build system

public-test-deps

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

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.

core rustc-dep-of-std?

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

cc build c?