1# NOTE: Must be kept in sync with `../builtins-shim/Cargo.toml`.
2#
3# This manifest is actually used in-tree by rust-lang/rust,
4# `../builtins-shim/Cargo.toml` is used by out-of-tree testing. See the other
5# manifest for further details.
6
7[package]
8name = "compiler_builtins"
9version = "0.1.160"
10authors = ["Jorge Aparicio <japaricious@gmail.com>"]
11description = "Compiler intrinsics used by the Rust compiler."
12repository = "https://github.com/rust-lang/compiler-builtins"
13license = "MIT AND Apache-2.0 WITH LLVM-exception AND (MIT OR Apache-2.0)"
14edition = "2024"
15publish = false
16links = "compiler-rt"
17
18[lib]
19bench = false
20doctest = false
21test = false
22# make sure this crate isn't included in public standard library docs
23doc = false
24
25[dependencies]
26core = { path = "../../core", optional = true }
27
28[build-dependencies]
29cc = { optional = true, version = "1.2" }
30
31[features]
32default = ["compiler-builtins"]
33
34# Enable compilation of C code in compiler-rt, filling in some more optimized
35# implementations and also filling in unimplemented intrinsics
36c = ["dep:cc"]
37
38# For implementations where there is both a generic version and a platform-
39# specific version, use the generic version. This is meant to enable testing
40# the generic versions on all platforms.
41no-asm = []
42
43# Workaround for codegen backends which haven't yet implemented `f16` and
44# `f128` support. Disabled any intrinsics which use those types.
45no-f16-f128 = []
46
47# Flag this library as the unstable compiler-builtins lib
48compiler-builtins = []
49
50# Generate memory-related intrinsics like memcpy
51mem = []
52
53# Mangle all names so this can be linked in with other versions or other
54# compiler-rt implementations. Also used for testing
55mangled-names = []
56
57# Only used in the compiler's build system
58rustc-dep-of-std = ["compiler-builtins", "dep:core"]
59
60# This makes certain traits and function specializations public that
61# are not normally public but are required by the `builtins-test`
62unstable-public-internals = []
63