|  | 
|  | 1 | +# NOTE: Must be kept in sync with `../compiler-builtins/Cargo.toml`. | 
|  | 2 | +# | 
|  | 3 | +# The manifest at `../compiler-builtins` is what actually gets used in the | 
|  | 4 | +# rust-lang/rust tree; however, we can't build it out of tree because it | 
|  | 5 | +# depends on `core` by path, and even optional Cargo dependencies need to be | 
|  | 6 | +# available at build time. So, we work around this by having this "shim" | 
|  | 7 | +# manifest that is identical except for the `core` dependency and forwards | 
|  | 8 | +# to the same sources, which acts as the `compiler-builtins` Cargo entrypoint | 
|  | 9 | +# for out of tree testing | 
|  | 10 | + | 
|  | 11 | +[package] | 
|  | 12 | +name = "compiler_builtins" | 
|  | 13 | +version = "0.1.160" | 
|  | 14 | +authors = ["Jorge Aparicio <japaricious@gmail.com>"] | 
|  | 15 | +description = "Compiler intrinsics used by the Rust compiler." | 
|  | 16 | +repository = "https://github.com/rust-lang/compiler-builtins" | 
|  | 17 | +license = "MIT AND Apache-2.0 WITH LLVM-exception AND (MIT OR Apache-2.0)" | 
|  | 18 | +edition = "2024" | 
|  | 19 | +publish = false | 
|  | 20 | +links = "compiler-rt" | 
|  | 21 | + | 
|  | 22 | +build = "../compiler-builtins/build.rs" | 
|  | 23 | + | 
|  | 24 | +[lib] | 
|  | 25 | +path = "../compiler-builtins/src/lib.rs" | 
|  | 26 | +bench = false | 
|  | 27 | +doctest = false | 
|  | 28 | +test = false | 
|  | 29 | + | 
|  | 30 | +[build-dependencies] | 
|  | 31 | +cc = { optional = true, version = "1.2" } | 
|  | 32 | + | 
|  | 33 | +[features] | 
|  | 34 | +default = ["compiler-builtins"] | 
|  | 35 | + | 
|  | 36 | +# Enable compilation of C code in compiler-rt, filling in some more optimized | 
|  | 37 | +# implementations and also filling in unimplemented intrinsics | 
|  | 38 | +c = ["dep:cc"] | 
|  | 39 | + | 
|  | 40 | +# Workaround for the Cranelift codegen backend. Disables any implementations | 
|  | 41 | +# which use inline assembly and fall back to pure Rust versions (if available). | 
|  | 42 | +no-asm = [] | 
|  | 43 | + | 
|  | 44 | +# Workaround for codegen backends which haven't yet implemented `f16` and | 
|  | 45 | +# `f128` support. Disabled any intrinsics which use those types. | 
|  | 46 | +no-f16-f128 = [] | 
|  | 47 | + | 
|  | 48 | +# Flag this library as the unstable compiler-builtins lib | 
|  | 49 | +compiler-builtins = [] | 
|  | 50 | + | 
|  | 51 | +# Generate memory-related intrinsics like memcpy | 
|  | 52 | +mem = [] | 
|  | 53 | + | 
|  | 54 | +# Mangle all names so this can be linked in with other versions or other | 
|  | 55 | +# compiler-rt implementations. Also used for testing | 
|  | 56 | +mangled-names = [] | 
|  | 57 | + | 
|  | 58 | +# Only used in the compiler's build system | 
|  | 59 | +rustc-dep-of-std = ["compiler-builtins"] | 
|  | 60 | + | 
|  | 61 | +# This makes certain traits and function specializations public that | 
|  | 62 | +# are not normally public but are required by the `builtins-test` | 
|  | 63 | +unstable-public-internals = [] | 
0 commit comments