# What changed in ctor

> 14 changes in ctor 1 from its official release notes, upgrade guides and advisories: 2 breaking, 1 security, 2 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/cargo/ctor/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## ctor 1

### Breaking changes

- The MSRV is now 1.85.0 when the priority feature is enabled; otherwise it remains 1.60.0. Disabling default features and enabling proc_macro and std restores the 1.60.0 MSRV. (1.0.6) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.6)
- WebAssembly now meets the minimum supported Rust version of 1.85. (1.0.5) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.5)

### Security

- Fixes unsafe C library access with the default priority value. (1.0.3) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.3)

### New APIs and options

- UEFI targets are supported; run constructors via ctor::run_constructors. (1.0.14) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.14)
- A const block can initialize a set of ctors, including optional ctors generated by a const function. (1.0.2) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.2)

### Performance

- The #[ctor] macro requires significantly less macro recursion. (1.0.6) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.6)

### Behavior and default changes

- Adds UEFI support using .init_array. (1.0.4) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.4)

### Fixes and other changes

- Generated startup constructors dereference reference statics twice so Static::deref runs before main. (1.0.14) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.14)
- Apple-platform staticlibs now always keep the primary priority ctor. (1.0.9) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.9)
- Error messages for bad attributes are better. (1.0.7) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.7)
- Falls back to .init_array on unsupported platforms. (1.0.4) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.4)
- Uses target_os=windows rather than target_vendor=pc for Windows detection. (1.0.4) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.4)
- Static ctors support various forms of &'static. (1.0.2) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.2)
- Fixed duplicated ctor calls in WASM. (1.0.1) — [release notes](https://github.com/mmastrac/linktime/releases/tag/ctor-1.0.1)
