compiler-builtins
Porting `compiler-rt` intrinsics to Rust (by rust-lang)
mustang
Rust programs written entirely in Rust (by sunfishcode)
Our great sponsors
compiler-builtins | mustang | |
---|---|---|
12 | 20 | |
339 | 790 | |
2.7% | - | |
7.8 | 7.5 | |
7 days ago | 4 days ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
compiler-builtins
Posts with mentions or reviews of compiler-builtins.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-01.
- Why do we need for an Undefined Behavior Annex to C++
-
Can I force rust to treat stdlib like other crates in terms of linkage?
I don't know which symbols are missing, haven't done anything on the llvm level. But I had the same problems creating a no-std no-libc application, if you add https://github.com/rust-lang/compiler-builtins as a dependency you should get all the symbols you need, std uses the same but if you want to use it outside of std you'll need nightly since it uses a lot a nightly features. It might apply to your case as well.
-
[Question] Need help with `avr-hal` for Arduino UNO
Ah, I see - you might be hitting https://github.com/rust-lang/compiler-builtins/issues/347.
-
Converting Integers to Floats Using Hyperfocus
There's a PR to the compiler-builtins crate which the rust implementation is based on.
-
rustc + avr = lovelove back again!
I'm glad to inform y'all that after a year, the infamous LLVM ERROR: Not supported instr bug¹ has been finally fixed and today's nightly can compile for AVR back again! 😎
- Hey Rustaceans! Got an easy question? Ask here (8/2022)!
- Porting Rust's Std to Rustix
-
Porting Rust's std to rustix
Then, some of the non-trivial things that are needed are already implemented and maintained in other crates, like memcpy and friends in compiler-builtins, all the math routines in libm and malloc in dlmalloc.
-
Rust for Embedded Development
3.Use scons to compile, if errors jumped on link up, find the solution on its official Github.
mustang
Posts with mentions or reviews of mustang.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-05.
-
OpenBSD 7.5 Released
It would be great for Rust to have a Linux target that doesn't use libc, but from what I've read, not many people are interested in this.
Found this as well: https://github.com/sunfishcode/mustang
Some discussion here: https://github.com/bytecodealliance/rustix/issues/76
- Mustang
-
Rust criticism from a Rustacean
On Linux there has been some attempts to get exactly this solutions, most notibly https://github.com/sunfishcode/mustang but the topic did not seem to fetch a prominent position on the supported feature list.
-
Microsoft rewriting core Windows libraries in Rust
For Linux, Mustang already exists because Linux has a stable syscall API
- Mustang: Rust target with std and no linking to a Libc
-
The Rust Implementation Of GNU Coreutils Is Becoming Remarkably Robust
Why bother with a libc at all, when you can skip it entirely on Linux!
-
Why so few, if any, pure Rust apps?
Mustang is a project which is able to run some non-trivial programs written in Rust, such as ripgrep, without using any libc, on Linux.
-
Can rust be entirely written in rust and drop C usage in its code base ?
Mustang is one way to take care of the tiny amount of "C" that runs before main().
-
How do I use Zig as Rust's Standard C Library?
This is more a Rust question than a Zig question. In Rust, the choice of a specific libc (or to not use a libc) is part of the "target", for example many hardware platforms have gnu/musl/none targets. See also relibc or mustang for pure-rust alternatives. Each libc alternative require some work to integrate into Rust.
-
memmapix: A pure Rust library for cross-platform memory mapped IO, which replace libc with rustix.
There's a separate project for that, called Mustang. It's built on top of rustix and provides all those things. It's not super mature yet, but it is able to run ripgrep by itself: https://github.com/sunfishcode/mustang
What are some alternatives?
When comparing compiler-builtins and mustang you can also consider the following projects:
rt-thread - RT-Thread is an open source IoT real-time operating system (RTOS).
ziglibc
wee_alloc - The Wasm-Enabled, Elfin Allocator
relibc - Mirror of https://gitlab.redox-os.org/redox-os/relibc
liblinux - Linux system calls.
rustix - Safe Rust bindings to POSIX-ish APIs
libm - A port of MUSL's libm to Rust.
libc - Raw bindings to platform APIs for Rust
cargo-wasi - A lightweight Cargo subcommand to build Rust code for the `wasm32-wasi` target
jython3 - A sandboxed attempt at v3 (not maintained)