Skip to content

vk 0.9.0+1.4.365 — development release

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 31 Oct 07:58
· 10 commits to main since this release

vk 0.9.0 — owned allocator device retention

Development release, 2026-10-31. Cargo package vkrust 0.9.0+1.4.365,
Rust library/import name vk, Git tag v0.9.0, MIT licensed.
The +1.4.365 suffix identifies the unchanged pinned Vulkan header snapshot;
it is not a Vulkan 1.4 driver requirement.

Developer guide ·
Rust API reference ·
Realm

API and migration

This is a minor API release: Allocator gains an internal DeviceRetention
reference-or-Arc<Device> device owner, exported as a public enum in
vk::mem. Three new constructors produce Allocator<'static>:

  • Allocator::new_retained(device: Arc<Device>, properties, block_size)
  • Allocator::new_retained_with_granularity(...) with explicit granularity
  • Allocator::new_retained_from_physical_device(physical_device, ...)

A retained allocator holds its own Arc<Device> clone, so it outlives the
construction scope and can travel to a dedicated cleanup/retirement thread.
SynchronizedAllocator::new_owned adopts a retained allocator directly,
without the borrowed-lifetime adoption contract. Internal BindOperation
and MapOperation storage retains the device through the same enum.

The borrowed new, new_with_granularity and new_from_physical_device
constructors and every existing Allocator, SynchronizedAllocator and
free-function contract are unchanged. Use Cargo requirement
version = "0.9" with feature allocator for memory APIs.

Evidence and limits

The release checkpoint passed 3,439 workspace tests/doctests on the private
tree, including the scoped retention proof
retained_allocator_outlives_scope_and_finishes_on_worker_thread, which
exercises scope-independent lifetime, synchronized worker-thread allocation
and final teardown on a dedicated thread against the native ledger. Strict
Clippy and rustfmt pass. Release CI reruns the configured tests,
package/consumer checks and pinned-header oracles on this release's exact
public snapshot.

No new sanitizer, VMA donor or native-hardware qualification was run for this
delta; the v0.8.0 scoped evidence carries forward unchanged for the borrowed
paths. Retained ownership is exercised by the native-ledger tests and by OA's
consumer migration, not yet by the released hardware profiles. The allocator
remains Experimental; all v0.8.0 qualification limits continue to apply —
see the qualification report. No fastest, full parity
or production readiness claim follows from this release.