[RFC] Rust support for Linux Kernel

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

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

    Empowering everyone to build reliable and efficient software.

  • With that out of the way, this means there are a few options. One option is to simply not use any of those types. This would mean writing alternatives. Not necessarily what you'd *want*, but it is at least possible. The second would be to forbid certain APIs that may reallocate, and only allow ones that return Result. Stuff like https://github.com/rust-lang/rust/issues/48043 can be used, and other stuff could be rejected. This would require some sort of custom analysis, but is fundamentally do-able.

  • gccrs

    GCC Front-End for Rust

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • no-panic

    Discontinued Attribute macro to require that the compiler prove a function can't ever panic

  • In my case, it is okay to panic, but https://github.com/dtolnay/no-panic does exist, even if it's not as nice as real support.

  • Rust-for-Linux

    Adding support for the Rust language to the Linux kernel. (by Rust-for-Linux)

  • From this, it looks like they probably won't end up using liballoc directly (which is kind of what I was expecting as a very casual observer):

  • rustc_codegen_gcc

    libgccjit AOT codegen for rustc (by antoyo)

  • There is an effort to add a GCC backend to Rust, at https://github.com/antoyo/rustc_codegen_gcc .

  • lib

    An experimental standard library (by lrs-lang)

  • lrs? https://github.com/lrs-lang/lib

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