nicoburns / blessed-rs

A community guide to the Rust ecosystem
https://blessed.rs
1.17k stars 66 forks source link

Add zerocopy to Safe type casts #114

Closed russellbanks closed 3 months ago

russellbanks commented 3 months ago

Zerocopy is an alternative to bytemuck that has similar popularity and I believe is worth adding.

While bytemuck has ~3x more all-time downloads, zerocopy, by both crates.io and lib.rs metrics, is currently getting more monthly downloads. After trying both crates myself, I can't necessarily recommend one over the other; they both achieved the exact same thing. I personally landed with zerocopy but that was mostly down to it having more recent downloads, being under Google, and having a roadmap for future improvements.

djc commented 3 months ago

Yes, this seems reasonable to me. Would you be able to submit a PR?