Skip to content

build: report selected WeeChat header - #52

Open
Komzpa wants to merge 1 commit into
poljar:mainfrom
Komzpa:komzpa/report-header-path-version-20260830
Open

build: report selected WeeChat header#52
Komzpa wants to merge 1 commit into
poljar:mainfrom
Komzpa:komzpa/report-header-path-version-20260830

Conversation

@Komzpa

@Komzpa Komzpa commented Aug 29, 2026

Copy link
Copy Markdown

Print the exact WeeChat header path selected by weechat-sys and the API version when the header exposes WEECHAT_PLUGIN_API_VERSION.

This makes plugin API mismatch reports easier to diagnose: the build log now says whether it used the configured, system, or vendored header and shows the resolved path.

Validation:

  • cargo fmt --check (stable rustfmt reports existing nightly-only config warnings)
  • cargo test -p weechat-sys --quiet
  • WEECHAT_PLUGIN_FILE=/usr/include/weechat/weechat-plugin.h cargo check -p weechat-sys prints /usr/include/weechat/weechat-plugin.h (API 20260704-03)

Fix requested from poljar/weechat-matrix-rs#285.

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