#built-in #llvm #source #conveniently #compilation #wasm32-unknown-unknown #compiler-rt

compiler-rt-builtins

The LLVM compiler-rt builtins source, conveniently packaged as a Rust crate

1 unstable release

0.1.0 Jan 9, 2024

#9 in #builtins

Apache-2.0 WITH LLVM-exception

380KB
7K SLoC

C 5.5K SLoC // 0.3% comments Bitbake 1K SLoC // 0.0% comments Rust 58 SLoC // 0.0% comments

compiler-rt-builtins

The LLVM compiler-rt builtins source, conveniently packaged as a Rust crate.

[dependencies]
compiler-rt-builtins = "0.1"

In your build.rs:

println!("cargo:rustc-link-lib=compiler-rt-builtins");

Created because when compiling C code to wasm32-unknown-unknown, some builtins are missing from Rust's compiler_builtins. Might have other uses too, who knows?

No runtime deps

~0–280KB