The runtime's first Windows check stopped at its module tree: dma_buf.rs takes file descriptors (std::os::fd) unconditionally, while dirty_pages, host_residency and texture/rotation were unix-only modules that every host's code names. - dma_buf.rs: every item that holds or makes a file descriptor (the sources, requests and chunks, the imports of dma-bufs and their pages, images bound to them, exported pages) is cfg(unix). The DRM-modifier image items that hold none (ModifierMemory, the explicit-plane and natural-layout checks, the format queries) stay on every host: their extension decides at run time. - dirty_pages and texture/rotation hold no unix code: on every host. - host_residency: the descriptor limit (RLIMIT_NOFILE), the dma-buf form of an import made again and its descriptor counts are unix-only; the pointer form and the sweeps stay on every host. - devtools' scratch lock: the file identity on Windows is the volume serial number and file index (GetFileInformationByHandle) in place of dev/ino. Verified: a step of the Windows check iteration (gnullvm, msi job).
20 lines
728 B
TOML
20 lines
728 B
TOML
[package]
|
|
name = "metal2vulkan-devtools"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
description = "External-tool helpers for metal2vulkan's own tests and its validation tools"
|
|
# The product's path-only dev-dependency (which `cargo publish` drops) and a dependency of
|
|
# `metal2vulkan-validation`; never published itself.
|
|
publish = false
|
|
|
|
[dependencies]
|
|
# The synthetic metallib writer's function hashes (`metallib`).
|
|
sha2.workspace = true
|
|
|
|
# The scratch locks' file identity on Windows (`scratch.rs`'s `same_file`).
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { workspace = true, features = ["Win32_Foundation", "Win32_Storage_FileSystem"] }
|