google / google/zerocopy

Replace layout computations with `alloc::Layout`?

Open
#2,532 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
2.6k
Forks
179
Avg merge
1d 19h
Merged PRs (30d)
29

Description

Now that [some `alloc::Layout` methods are `const`](https://github.com/rust-lang/rust/issues/67521), we may be able to replace some of our `layout` module machinery with these methods. This will only work on recent toolchains, so we will still need to fall back to our implementations on older toolchains, but it will be good to rely on more widely-used implementations where possible, and we will eventually be able to remove our implementations when we bump our MSRV.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.