Skip to content

Build docs.rs docs for Linux - #64

Merged
Bytekeeper merged 1 commit into
masterfrom
fix-docs-rs-target
Nov 2, 2026
Merged

Bytekeeper merged 1 commit into
masterfrom
fix-docs-rs-target

Conversation

@Bytekeeper

Copy link
Copy Markdown
Owner

The docs.rs build fails with 'functional' file not found.

docs.rs was set to build for x86_64-pc-windows-msvc. With that target, clang looks for Microsoft's C++ standard library headers when bwapi_wrapper's build script reads the BWAPI headers. docs.rs runs on Linux and doesn't have them. Both crates now use x86_64-unknown-linux-gnu, which works since the Unix support in 4fbe81d.

Only crate-private code differs by operating system, so the docs don't lose any public API.

Tested: with DOCS_RS=1 and the Linux target, docs build for bwapi_wrapper from its packaged crate and for rsbwapi from the workspace. The old target gave the same error locally, using i686-pc-windows-msvc.

Not tested: docs.rs's own build image. This relies on that image including the Linux C++ headers.

The fix reaches docs.rs only with a new release, because 3.6.3 keeps its old settings.

🤖 Generated with Claude Code

docs.rs runs on Linux, so on the MSVC target clang could not find the C++ standard
library headers and the build script failed with 'functional' file not found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Bytekeeper
Bytekeeper merged commit 9128ff0 into master Nov 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant