NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #2412 most downloaded on crates.io
Link-time initialized slices for Rust, with full support for Linux, macOS, Windows, WASM and many more platforms.
Latest stable
0.19.3
Last release 3 months ago
09 Aug 2026
Ships on a steady schedule
a new release about every 1 weeks
Most releases are documented
notes for 19 of 31 stable releases
Nothing withdrawn
no release was ever pulled
7 months old
31 releases · first in 2026
Drag across the ruler to compare, or tap a release to open it.
Ensure hashes always compute 64-bit chunks by @mmastrac in https://github.com/mmastrac/rust-ctor/pull/508
crate_path and re-exports by @mmastrac in https://github.com/mmastrac/rust-ctor/pull/514Full Changelog: https://github.com/mmastrac/rust-ctor/compare/link-section-0.19.2...link-section-0.19.3
linktime-proc-macro dependency to 0.2.3 (consistent 64-bit hash chunks
and cross-crate section-name fix).crate_path override and surfaced the generated attribute
reference (including crate_path) in the crate docs and README.const item is submitted to a reference
section: the item's cell lacked the fix-up slot the section-wide layout expects,
so materialisation read past the cell and could write through a garbage slot
pointer (https://github.com/mmastrac/linktime/pull/511).Your coding agent can read these notes before it upgrades. Set up the MCP server →
One column per month.
Bumped internal proc macro minimum version to pick up PR https://github.com/mmastrac/linktime/pull/495 (should not result in any downstream visible ch
Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.19.1...link-section-0.19.2
linktime-proc-macro dependency to 0.2.1 (makes link-section names more stable).Fix semicolons in expression position by @mmastrac in https://github.com/mmastrac/linktime/pull/500
Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.19.0...link-section-0.19.1
Repro for LLVM provenance issue on Windows by @mmastrac in https://github.com/mmastrac/linktime/pull/480
Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.18.3...link-section-0.19.0
read_custom_section host import is no longer required. Sections
are gathered in-module via .init_array.0 submissions and an .init_array.1
finalizer; the #[ctor] priority contract is unchanged.LinkCell<T> static (value
plus trailing list metadata) instead of a separate value static and cell.Ref::as_ptr and MovableRef::as_ptr are now pub(crate). They exposed raw
pointer plumbing that was never meant to be public API; use Deref (or
offset_of for section-membership checks) instead. This is a breaking change.Fix Windows/COFF pointer-provenance miscompile in scattered-collect section bounds by @lukesandberg in https://github.com/mmastrac/linktime/pull/481
Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.18.2...link-section-0.18.3
black_box,
fixing a miscompile where an optimizing (LTO) build could prove a gathered
slice (e.g. ScatteredSlice<&'static T>) reads as all-zero and fold it to
null values, crashing on use (0xC0000005). Fixes
#479.Fix linker error with empty scatter/gather collections on ELF by @lukesandberg in https://github.com/mmastrac/linktime/pull/474
Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.18.1...link-section-0.18.2
Support Rust 1.96 changes in WASM by @mmastrac in https://github.com/mmastrac/linktime/pull/473
Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.18.0...link-section-0.18.1
proc_macro feature is now required for any non-unsafe section.
proc_macro feature is now required for any non-unsafe section.unsafe sections now generate a unique ID for the submission site which
allows multiple sections to share the same identifier.scattered-collect-proc-macro by @mmastrac in https://github.com/mmastrac/linktime/pull/472Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.17.2...link-section-0.18.0
## What's Changed - fix raw aux sections Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.17.1...link-section-0.17.2
aux sectionsFull Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.17.1...link-section-0.17.2
MovableRef and Ref implement Debug and Display if the referenced type does.
offset_of improvements.Ref moved to crate root.MovableRef and Ref implement Debug and Display if the referenced type does.Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.17.0...link-section-0.17.1
MovableRef and Ref implement Debug and Display if the referenced type does.reference module in favor of Ref from the crate root.reference sections support access both as a slice and as a reference at the submission site on all platforms (including WASM).
reference sections support access both as a slice and as a reference at the
submission site on all platforms (including WASM).movable sections support reordering and back-reference updates during
startup initialization (allowing a "reference" to an item that may move during
initialization at the submission site).typed and mutable sections have been split: typed allows for const and
static items, while mutable allows for const items and as_mut_slice
access.scattered-collect release by @mmastrac in https://github.com/mmastrac/linktime/pull/461Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.16.1...link-section-0.17.0
reference sections support access both as a slice and as a reference at the
submission site on all platforms (including WASM).movable sections support reordering and back-reference updates during
startup initialization (allowing a "reference" to an item that may move during
initialization at the submission site).typed and mutable sections have been split: typed allows for const and
static items, while mutable allows for const items and as_mut_slice
access.#[section(typed)], #[section(untyped)],
#[section(mutable)], #[section(movable)], or #[section(reference)].#[section(untyped, aux(main = FN_ARRAY))]
pub static FN_BODIES: link_section::Section;
#[section(typed)]
pub static FN_ARRAY: link_section::TypedSection<fn()>;
#[in_section(FN_ARRAY)]
const _: fn() = linked_function;
#[in_section(FN_BODIES)]
pub fn linked_function() {
eprintln!("linked_function");
}
Ensure WASM meets MSRV of 1.85 by @mmastrac in https://github.com/mmastrac/linktime/pull/455
Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.16.0...link-section-0.16.1
AIX support in link-section by @mmastrac in https://github.com/mmastrac/linktime/pull/446
Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.15.0...link-section-0.16.0
-C link-arg=-bdbg:namedsects:ss (or a
recent Rust version that sets this automatically).Add const option for link-section by @mmastrac in https://github.com/mmastrac/linktime/pull/430
Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.14.0...link-section-0.15.0
const items in link sections.const items, and uses ctor-like initialization to copy
data to a contiguous section. To access link-section slices in WASM in
constructor functions, make sure to use priority = 1.externs. Windows now uses a
non-zero-sized alignment marker to align the start and end of the section.
Other LLVM/GCC platforms use a u8.link-section is now no_std-compatible.Update link-section behaviour for WASM targets by @mmastrac in https://github.com/mmastrac/linktime/pull/426
link-section behaviour for WASM targets by @mmastrac in https://github.com/mmastrac/linktime/pull/426Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.13.1...link-section-0.14.0
read_custom_section function to read custom
sections.Documentation polish and typo fixes.
used_linker feature moved to --cfg linktime_used_linker flag.
used_linker feature moved to --cfg linktime_used_linker flag.fn items are placed in a __TEXT,__text,regular,pure_instructions
section (fixes a linker warning in nightly).Nothing published for this version
Macro attributes and crate features are auto-documented.
Included licenses in all files.
link-section crate no longer offers const section pointers.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version