rt docs: the Unix-only dma-buf import named in plain text, and rt's Rustdoc for Windows in CI
rt's documentation for x86_64-pc-windows-gnullvm and -msvc failed on unresolved links to
Device::import_dma_buf, which only a Unix host has: the docs of block.rs's Block, BlockInfo,
Error's NoImport, floor's OPTIONAL_EXTENSIONS, ImportHandle::DmaBuf, import_host_memory, the
over-copy metric, the imports gauge and Buffer::new_texture's texture forms linked it. Each now
names the call in plain text with its host ("on Unix", "(Unix)"), which resolves on both
hosts; no link or allow is left behind. d3d11.rs's links to import_d3d11_surface sit in a
Windows-only module, so they are documented on Windows alone.
CI gains the step: rt's Rustdoc, warnings denied, for both Windows targets, from Linux beside
the Windows clippy step.
Verified: see the job in the lane's report (cargo doc -p metal2vulkan-rt --target <both>
--all-features --no-deps with -D warnings, and the Linux doc).
This commit is contained in:
1 parent
27f4a54e4d
commit
9385f103ee
9 files changed
+34
-17
No files matched your search
@@ -135,6 +135,21 @@ jobs:
|
||||
echo "::endgroup::"
|
||||
done
|
||||
|
||||
# rt's documentation for both Windows targets, from Linux as above: a doc link to an item
|
||||
# only one host has (a Unix host's dma-buf import, Windows' Direct3D 11 import) is
|
||||
# unresolved on the other host.
|
||||
- name: Build rt's documentation for Windows (warnings denied, Linux)
|
||||
if: runner.os == 'Linux'
|
||||
env:
|
||||
RUSTDOCFLAGS: -Dwarnings
|
||||
run: |
|
||||
set -euo pipefail
|
||||
for target in x86_64-pc-windows-gnullvm x86_64-pc-windows-msvc; do
|
||||
echo "::group::$target"
|
||||
cargo doc --target "$target" -p metal2vulkan-rt --all-features --no-deps
|
||||
echo "::endgroup::"
|
||||
done
|
||||
|
||||
- name: Build public documentation (warnings denied)
|
||||
env:
|
||||
RUSTDOCFLAGS: -Dwarnings
|
||||
|
||||
Reference in new issue
Block a user