bytemuck

A crate for mucking around with piles of bytes (by Lokathor)

Bytemuck Alternatives

Similar projects and alternatives to bytemuck based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better bytemuck alternative or higher similarity.

bytemuck reviews and mentions

Posts with mentions or reviews of bytemuck. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-16.
  • Where can I read about how to write a safe API for unsafe code?
    3 projects | /r/rust | 16 Sep 2023
    bytemuck uses a number of traits to provide safe APIs for bitcasts in cases where it's actually safe. This doesn't cover the full spectrum of safety in Rust (I imagine Send and Sync aren't too relevant here?), but if you can understand how this crate provides a safe API on top of a fair bit of unsafe, then you'll be well on your way here. (For extra credit, study zerocopy as well, which lives in a similar domain. Compare its use of unsafe and the functionality it provides with bytemuck.) I mention these crates because after a cursory look, they have decent comments describing safety obligations. So you have a decent chance of actually understanding the boundary between safe and unsafe here.
  • copying bytes from &[u32] to &mut [u8] the rust way
    1 project | /r/rust | 11 Jun 2023
    (Example: looking through the issues, bytemuck seemed to have a soundness issue just a few months ago: https://github.com/Lokathor/bytemuck/issues/170)

Stats

Basic bytemuck repo stats
2
610
7.8
14 days ago

Lokathor/bytemuck is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of bytemuck is Rust.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com