Can rust be entirely written in rust and drop C usage in its code base ?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • mustang

    Rust programs written entirely in Rust

  • Mustang is one way to take care of the tiny amount of "C" that runs before main().

  • rust

    Empowering everyone to build reliable and efficient software.

  • It is already https://github.com/rust-lang/rust

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • libc

    Raw bindings to platform APIs for Rust

  • The libc crate exposes system C APIs in Rust code, and is used by the compiler and standard library. It also does not contain any C code. See for yourself.

  • rustc_codegen_cranelift

    Cranelift based backend for rustc

  • Cranelift is a pure-rust alternative to the LLVM or GCC codegen. It's not aiming for the same runtime performance as those (that would take stupidly long just to replicate what LLVM/GCC already do), but it compiles much faster, making it great for debug builds.

  • inline-lua

    An absolutely horrible idea

  • Then again, maybe you're right, asm counts as rust, just like C/C++, python, spirv, visual basic, shell, and lua :)

  • rustix

    Safe Rust bindings to POSIX-ish APIs

  • The rustix project claims to use raw syscalls (and vDSO calls) on linux and provides more memory / type safety compared to the libc API.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts