From 73e5f0e4a4e3c3a1dc8a91cca3398335feb81fc7 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sun, 28 Jun 2026 15:38:43 -0700 Subject: [PATCH 1/2] `memoffset` -> `std::mem::offset_of!` --- data/memoffset.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 data/memoffset.toml diff --git a/data/memoffset.toml b/data/memoffset.toml new file mode 100644 index 0000000..d52b4fc --- /dev/null +++ b/data/memoffset.toml @@ -0,0 +1,5 @@ +description = """ +Most of the functionality of this crate now exists in `std::mem::offset_of!` as \ +of Rust 1.77. +""" +url = "https://doc.rust-lang.org/std/mem/macro.offset_of.html" From dde46ab5dc9120a962c71a566776222ff857f1e8 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Tue, 30 Jun 2026 18:36:40 -0700 Subject: [PATCH 2/2] Mention `span_of!` --- data/memoffset.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/memoffset.toml b/data/memoffset.toml index d52b4fc..864cf2c 100644 --- a/data/memoffset.toml +++ b/data/memoffset.toml @@ -1,5 +1,7 @@ description = """ Most of the functionality of this crate now exists in `std::mem::offset_of!` as \ of Rust 1.77. + +The functionality of `span_of!` does not exist in the standard library. """ url = "https://doc.rust-lang.org/std/mem/macro.offset_of.html"