Is this use of MaybeUninit sound?

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

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

    Empowering everyone to build reliable and efficient software.

    Actually, this wouldn't work. It would have to be either MaybeUninit::uninit_array, which is experimental, or a macro expanding to an array of calls to MaybeUninit::uninit()...

  • smallqueue

    simple Rust queue on stack

    I threw together a smallqueue crate as an example of how to use a small amount of unsafe to make a heapless queue. I think my code is safe. The pattern you use from the MaybeUninit docs has been replaced in my code by array::from_fn(), which I think is easier to read and understand now that it exists.

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

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