Post-Monomorphization Dead Code Elimination and Other Unwritten Blog Posts

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
  • intertrait

    A library providing direct casting among trait objects implemented by a type

  • There are some external libraries that downcasting between trait objects (e.g: intertrait), though these all use require some external runtime checking / linker shenanigans, which means they aren't amenable to the dead-code-elimination optimizations that make OPs technique work.

  • inlinable-dyn-extension-traits

    An exploration into the various ways optional trait methods can be implemented in Rust.

  • Funny enough, I've also been meaning to write a full blog post about it, but haven't found the time! In the meantime, I've got a rough overview of this technique as part of the gdbstub docs, and I've got a WIP repo of example code and exploratory notes that explores the technique in more detail (along with comparing it with alternative approaches)

  • 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
  • binrw

    A Rust crate for helping parse and rebuild binary data using ✨macro magic✨.

  • Sure! The commit is here (I haven’t pushed the version of this commit I made on binread itself but the actual changes are identical)

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