2016-08-07 15:58:05 -05:00
|
|
|
[package]
|
|
|
|
|
authors = ["Jorge Aparicio <japaricious@gmail.com>"]
|
2016-10-10 19:05:21 -05:00
|
|
|
name = "compiler_builtins"
|
2020-08-28 01:35:29 +01:00
|
|
|
version = "0.1.35"
|
2018-11-21 11:09:24 -08:00
|
|
|
license = "MIT/Apache-2.0"
|
|
|
|
|
readme = "README.md"
|
2019-09-25 11:20:14 -07:00
|
|
|
repository = "https://github.com/rust-lang/compiler-builtins"
|
|
|
|
|
homepage = "https://github.com/rust-lang/compiler-builtins"
|
2018-11-21 11:09:24 -08:00
|
|
|
documentation = "https://docs.rs/compiler_builtins"
|
|
|
|
|
description = """
|
|
|
|
|
Compiler intrinsics used by the Rust compiler. Also available for other targets
|
|
|
|
|
if necessary!
|
|
|
|
|
"""
|
2018-11-21 12:57:14 -08:00
|
|
|
include = [
|
|
|
|
|
'/Cargo.toml',
|
|
|
|
|
'/build.rs',
|
|
|
|
|
'/src/*',
|
|
|
|
|
'/examples/*',
|
|
|
|
|
'/LICENSE.txt',
|
|
|
|
|
'/README.md',
|
|
|
|
|
'/compiler-rt/*',
|
|
|
|
|
'/libm/src/math/*',
|
|
|
|
|
]
|
2018-11-21 12:55:06 -08:00
|
|
|
links = 'compiler-rt'
|
2016-08-10 19:12:37 -05:00
|
|
|
|
2018-01-31 10:04:01 -08:00
|
|
|
[lib]
|
|
|
|
|
test = false
|
2017-04-10 14:38:17 -05:00
|
|
|
|
2018-11-19 22:02:13 -08:00
|
|
|
[dependencies]
|
|
|
|
|
# For more information on this dependency see rust-lang/rust's
|
|
|
|
|
# `src/tools/rustc-std-workspace` folder
|
|
|
|
|
core = { version = "1.0.0", optional = true, package = 'rustc-std-workspace-core' }
|
|
|
|
|
|
2018-01-31 10:04:01 -08:00
|
|
|
[build-dependencies]
|
2020-08-21 15:29:36 +08:00
|
|
|
cc = { version = "1.0" }
|
2016-09-26 15:55:11 -05:00
|
|
|
|
2018-07-12 09:29:32 -07:00
|
|
|
[dev-dependencies]
|
2018-09-01 20:12:41 +02:00
|
|
|
panic-handler = { path = 'crates/panic-handler' }
|
2018-07-12 09:29:32 -07:00
|
|
|
|
2016-08-14 21:59:48 -05:00
|
|
|
[features]
|
2018-01-31 10:04:01 -08:00
|
|
|
default = ["compiler-builtins"]
|
|
|
|
|
|
|
|
|
|
# Enable compilation of C code in compiler-rt, filling in some more optimized
|
|
|
|
|
# implementations and also filling in unimplemented intrinsics
|
2020-08-25 13:48:32 +08:00
|
|
|
c = []
|
2018-01-31 10:04:01 -08:00
|
|
|
|
|
|
|
|
# Flag this library as the unstable compiler-builtins lib
|
2016-12-11 16:18:43 -05:00
|
|
|
compiler-builtins = []
|
2018-01-31 10:04:01 -08:00
|
|
|
|
|
|
|
|
# Generate memory-related intrinsics like memcpy
|
2016-12-17 23:01:47 -05:00
|
|
|
mem = []
|
2017-06-24 10:04:00 -07:00
|
|
|
|
2018-01-31 10:04:01 -08:00
|
|
|
# Mangle all names so this can be linked in with other versions or other
|
|
|
|
|
# compiler-rt implementations. Also used for testing
|
|
|
|
|
mangled-names = []
|
2016-09-16 15:53:14 -05:00
|
|
|
|
2018-01-31 10:04:01 -08:00
|
|
|
# Don't generate lang items for i128 intrisnics and such
|
|
|
|
|
no-lang-items = []
|
2017-04-10 16:12:49 -05:00
|
|
|
|
2018-11-19 22:02:13 -08:00
|
|
|
# Only used in the compiler's build system
|
2019-05-14 17:57:42 +02:00
|
|
|
rustc-dep-of-std = ['compiler-builtins', 'core']
|
2018-11-19 22:02:13 -08:00
|
|
|
|
2017-06-22 14:00:31 -07:00
|
|
|
[[example]]
|
|
|
|
|
name = "intrinsics"
|
2019-05-14 12:26:09 -07:00
|
|
|
required-features = ["compiler-builtins"]
|
2017-06-22 14:00:31 -07:00
|
|
|
|
2016-09-16 15:53:14 -05:00
|
|
|
[workspace]
|
2018-01-31 10:04:01 -08:00
|
|
|
members = ["testcrate"]
|
2018-11-21 10:19:31 -08:00
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
|
panic = 'abort'
|
|
|
|
|
|
|
|
|
|
[profile.dev]
|
|
|
|
|
panic = 'abort'
|