rust/library/compiler-builtins
Trevor Gross 7222fa6f34 Work around out-of-tree testing with a shim crate
Out-of-tree testing is broken with the most recent update from
rust-lang/rust because it makes `compiler-builtins` depend on `core` by
path, which isn't usually available. In order to enable testing outside
of rust-lang/rust, add a new crate `builtins-shim` that uses the same
source as `compiler-builtins` but drops the `core` dependency. This has
replaced `compiler-builtins` as the workspace member and entrypoint for
tests.
2025-06-14 06:56:18 +00:00
..
.github/workflows Replace the musl submodule with a download script 2025-06-04 17:20:43 +00:00
builtins-shim Work around out-of-tree testing with a shim crate 2025-06-14 06:56:18 +00:00
builtins-test Work around out-of-tree testing with a shim crate 2025-06-14 06:56:18 +00:00
builtins-test-intrinsics Work around out-of-tree testing with a shim crate 2025-06-14 06:56:18 +00:00
ci ci: Fix a typo that was causing a command failure 2025-06-10 07:02:57 +00:00
compiler-builtins Work around out-of-tree testing with a shim crate 2025-06-14 06:56:18 +00:00
crates panic-handler: Remove the no_core feature 2025-06-04 21:27:00 +00:00
etc Use runtime feature detection for fma routines on x86 2025-05-03 14:17:49 -04:00
libm Clean up and sort manifest keys 2025-06-13 17:35:21 +00:00
libm-test Replace the musl submodule with a download script 2025-06-04 17:20:43 +00:00
.editorconfig Move the libm .editorconfig to root 2025-04-19 20:42:40 -04:00
.git-blame-ignore-revs Update .git-blame-ignore-revs after the libm merge 2025-04-19 20:18:22 +00:00
.gitignore Replace the musl submodule with a download script 2025-06-04 17:20:43 +00:00
.rustfmt.toml Add a .rustfmt.toml with style edition 2024 2025-04-19 19:05:49 -04:00
Cargo.toml Work around out-of-tree testing with a shim crate 2025-06-14 06:56:18 +00:00
CONTRIBUTING.md Update README and CONTRIBUTING for the new repository layout 2025-04-21 06:16:12 -04:00
LICENSE.txt Update licensing information after repository refactoring 2025-04-21 06:16:12 -04:00
PUBLISHING.md Update publishing instructions 2019-11-11 10:40:09 -08:00
README.md fixed typo in readme 2025-05-22 11:51:54 +02:00
rust-version Update the upstream Rust version 2025-06-14 04:25:55 +00:00
thumbv6m-linux-eabi.json Update target specs 2017-10-03 02:28:49 -07:00
thumbv7em-linux-eabi.json Update target specs 2017-10-03 02:28:49 -07:00
thumbv7em-linux-eabihf.json Update target specs 2017-10-03 02:28:49 -07:00
thumbv7m-linux-eabi.json Update target specs 2017-10-03 02:28:49 -07:00

compiler-builtins and libm

This repository contains two main crates:

  • compiler-builtins: symbols that the compiler expects to be available at link time
  • libm: a Rust implementation of C math libraries, used to provide implementations in core.

More details are at compiler-builtins/README.md and libm/README.md.

For instructions on contributing, see CONTRIBUTING.md.

License

  • libm may be used under the MIT License
  • compiler-builtins may be used under the MIT License and the Apache License, Version 2.0 with the LLVM exception.
  • All original contributions must be under all of: the MIT license, the Apache-2.0 license, and the Apache-2.0 license with the LLVM exception.

More details are in LICENSE.txt and libm/LICENSE.txt.