[package] authors = ["Jorge Aparicio <japaricious@gmail.com>"] name = "compiler_builtins" version = "0.1.112" license = "MIT/Apache-2.0" readme = "README.md" repository = "https://github.com/rust-lang/compiler-builtins" homepage = "https://github.com/rust-lang/compiler-builtins" documentation = "https://docs.rs/compiler_builtins" edition = "2018" description = """ Compiler intrinsics used by the Rust compiler. Also available for other targets if necessary! """ include = [ '/Cargo.toml', '/build.rs', '/src/*', '/examples/*', '/LICENSE.txt', '/README.md', '/compiler-rt/*', '/libm/src/math/*', ] links = 'compiler-rt' [lib] test = false [dependencies] # For more information on this dependency see # https://github.com/rust-lang/rust/tree/master/library/rustc-std-workspace-core core = { version = "1.0.0", optional = true, package = 'rustc-std-workspace-core' } [build-dependencies] cc = { optional = true, version = "1.0" } [dev-dependencies] panic-handler = { path = 'crates/panic-handler' } [features] default = ["compiler-builtins", "no-f16-f128"] # Enable compilation of C code in compiler-rt, filling in some more optimized # implementations and also filling in unimplemented intrinsics c = ["cc"] # Workaround for the Cranelift codegen backend. Disables any implementations # which use inline assembly and fall back to pure Rust versions (if avalible). no-asm = [] # Workaround for codegen backends which haven't yet implemented `f16` and # `f128` support. Disabled any intrinsics which use those types. no-f16-f128 = [] # Flag this library as the unstable compiler-builtins lib compiler-builtins = [] # Generate memory-related intrinsics like memcpy mem = [] # Mangle all names so this can be linked in with other versions or other # compiler-rt implementations. Also used for testing mangled-names = [] # Only used in the compiler's build system rustc-dep-of-std = ['compiler-builtins', 'core'] # This makes certain traits and function specializations public that # are not normally public but are required by the `testcrate` public-test-deps = [] weak-intrinsics = [] [[example]] name = "intrinsics" required-features = ["compiler-builtins"] [workspace] members = ["testcrate"] [profile.release] panic = 'abort' [profile.dev] panic = 'abort' [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_family, values("solana"))', 'cfg(target_feature, values("static-syscalls"))', 'cfg(target_os, values("solana"))'] }