NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #538 most downloaded on crates.io
Global, no_std-compatible constructors for all platforms that run before main (like C/C++ __attribute__((constructor)))
Latest stable
1.0.13
Last release 3 months ago
09 Aug 2026
Release timing varies
gaps range from 8 days to 4 months
Some releases are documented
notes for 20 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
79 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Bumped internal proc macro minimum version to pick up consistent 64-bit hash chunks (#508) and the cross-crate section-name fix (#509) (should not res
crate_path and re-exports by @mmastrac in https://github.com/mmastrac/rust-ctor/pull/514Full Changelog: https://github.com/mmastrac/rust-ctor/compare/ctor-1.0.12...ctor-1.0.13
linktime-proc-macro dependency to 0.2.3 (consistent 64-bit hash chunks
and cross-crate section-name fix).crate_path override for re-exporting the macro from another
crate.Bumped internal proc macro minimum version to pick up PR #495 (should not result in any downstream visible changes)
Full Changelog: https://github.com/mmastrac/linktime/compare/ctor-1.0.11...ctor-1.0.12
Your coding agent can read these notes before it upgrades. Set up the MCP server →
linktime-proc-macro dependency to 0.2.1 (makes link-section names more stable).Pointer-align the Apple ctor anchor by @mmastrac in https://github.com/mmastrac/linktime/pull/503
Full Changelog: https://github.com/mmastrac/linktime/compare/ctor-1.0.10...ctor-1.0.11
Split Static::deref's slow path into cold fn by @yvt in https://github.com/mmastrac/linktime/pull/501
Static::deref's slow path into cold fn by @yvt in https://github.com/mmastrac/linktime/pull/501Full Changelog: https://github.com/mmastrac/linktime/compare/ctor-1.0.9...ctor-1.0.10
Static::deref initialization (@yvt PR #501)Ensure that Apple-platform staticlibs always keep the primary priority ctor (fixed by @mmastrac in https://github.com/mmastrac/linktime/pull/498, repo
Full Changelog: https://github.com/mmastrac/linktime/compare/ctor-1.0.8...ctor-1.0.9
Bump versions by @mmastrac in https://github.com/mmastrac/linktime/pull/490
Full Changelog: https://github.com/mmastrac/linktime/compare/link-section-0.18.3...ctor-1.0.8
Bump downstream link-section crate version and API updates.
link-section crate version and API updates.Full Changelog: https://github.com/mmastrac/linktime/compare/ctor-1.0.6...ctor-1.0.7
link-section dependency to 0.18.0.Bump link-section dependency to 0.17.0.
link-section dependency to 0.17.0.priority feature is enabled), otherwise remains at
1.60.0.
ctor = { version = "1.0.6", default-features = false, features = ["proc_macro", "std"] } in your Cargo.toml.#[ctor] requires significantly less macro recursion.Full Changelog: https://github.com/mmastrac/linktime/compare/ctor-1.0.5...ctor-1.0.6
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/ctor-1.0.4...ctor-1.0.5
Use target_os=windows rather than target_vendor=pc by @mmastrac in https://github.com/mmastrac/linktime/pull/443
.init_array) by @mmastrac in https://github.com/mmastrac/linktime/pull/444Full Changelog: https://github.com/mmastrac/linktime/compare/ctor-1.0.3...ctor-1.0.4
.init_array matching gnu-efi).init_array for unsupported targets (with a warning)target_vendor = "pc" is now target_os = "windows". This should be a
strictly increasing set of support for windows targets.Fix unsafe C library access with default priority value by @mmastrac in https://github.com/mmastrac/linktime/pull/442
Full Changelog: https://github.com/mmastrac/linktime/compare/ctor-1.0.2...ctor-1.0.3
default priority value is now supported and is the default. This is
equivalent to a priority of 500 on most platforms. The previous priority
default of 0 was unsafe for C library access on some platforms.early priority value is now equivalent to a priority of 101 on most platforms.Improvements to static items for #[ctor]
static items for #[ctor]const dynamic ctors - use a const block to initialize a set of ctorslink-section behaviour for WASM targets by @mmastrac in https://github.com/mmastrac/linktime/pull/426
github.com/mmastrac/linktime/pull/428Full Changelog: https://github.com/mmastrac/linktime/compare/ctor-1.0.1...ctor-1.0.2
link-section dependency to 0.15.0.const rather than static items for collected constructors on macOS.&'static for #[ctor] statics which desugar to
&'static Static.Display directly as well.#[ctor] items in a single #[ctor] block:#[ctor]
static CTOR: &[fn()] = const {
// ...
}
Fix duplicated ctor calls in WASM https://github.com/mmastrac/linktime/pull/422
Full Changelog: https://github.com/mmastrac/linktime/compare/ctor-1.0.0...ctor-1.0.1
wasm32-unknown-unknown would run ctor items on each call of an exported
function.Cleanup pass on build scripts by @mmastrac in https://github.com/mmastrac/linktime/pull/416
Full Changelog: https://github.com/mmastrac/linktime/compare/ctor-0.13.1...ctor-1.0.0
dtor was split into the dtor crate. You'll need to add it to your
dependencies like so:[dependencies]
dtor = "1.0.0" # or later
#[ctor(unsafe)] is now required for #[ctor] items. If you are building a
binary, you can use RUSTFLAGS="--cfg linktime_no_fail_on_missing_unsafe"
(or alternatively, specify this in your config.toml file) to bypass the
error.ctor from their own crates: the
ctor::declarative::ctor! macro should be preferred over
#[ctor(crate_path = ...)]. The latter form will continue to work, but
the declarative macro is far more stable for most use cases. See
https://docs.rs/ctor/latest/ctor/declarative/macro.ctor.html for more
details.Crate examples were reorganized.
--cfg flags were incorrect).unsafe is now required for #[ctor] items and the no_warn_on_missing_unsafe feature is gone.
#[ctor(priority = naked)] is now #[ctor(naked)].unsafe is now required for #[ctor] items and the
no_warn_on_missing_unsafe feature is gone.
RUSTFLAGS="--cfg linktime_no_fail_on_missing_unsafe" can bypass the error.used_linker feature moved to --cfg linktime_used_linker flag.#[ctor] items (supported for Linux/Android/FreeBSD/Apple).Deprecated dtor feature and crate dependency from ctor crate (use the dtor crate directly).
#[ctor] on impl items. To be valid, the fn must have no
self parameter and must not access any generic parameters from the outer
item.life before main documentation to all crates.early and late priority values are now supported on all platforms.dtor feature and crate dependency from ctor crate (use the
dtor crate directly).priority feature is enabled, ctor priority sorting is now stable
and consistent across platforms: early/0/unspecified, then 1 <= N < 1000, then late.link_section or export_name_prefix is specified, a priority value
must not be specified (now a compiler error).linktime-proc-macro crate for proc-macro support.Deprecated dtor macros in favor of the dtor crate.
dtor macros in favor of the dtor crate.linktime-proc-macro crate for proc-macro support.dtor references in ctor docs.AIX support for ctor/dtor crates.
ctor/dtor crates.statics code in ctor to not require std.Included licenses in all files.
ctors accidentally enabled the anonymous flag.ctor exports all dtor macros from dtor crate rather than reimplementing them.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
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
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
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
One column per quarter.