Skip to content

build: require explicit bundled WeeChat header - #48

Merged
strk merged 1 commit into
poljar:mainfrom
Komzpa:komzpa/explicit-bundled-header
Jul 6, 2026
Merged

build: require explicit bundled WeeChat header#48
strk merged 1 commit into
poljar:mainfrom
Komzpa:komzpa/explicit-bundled-header

Conversation

@Komzpa

@Komzpa Komzpa commented Jul 5, 2026

Copy link
Copy Markdown

Stop silently falling back to the bundled weechat-plugin.h when the system header cannot be found.

The default path now fails with a message telling the builder to install WeeChat development headers, set WEECHAT_PLUGIN_FILE, or explicitly opt into the bundled header with WEECHAT_BUNDLED=true. The bundled path still works when requested.

Validation:

  • cargo fmt --check
  • git diff --check
  • WEECHAT_BUNDLED=true CARGO_TARGET_DIR=/home/kom/tmp/rust-weechat-target-bundled cargo check -p weechat-sys --locked
  • expected no-header failure without WEECHAT_BUNDLED / WEECHAT_PLUGIN_FILE, with the new explicit error text

References poljar/weechat-matrix-rs#124.

@strk
strk merged commit 61107e1 into poljar:main Jul 6, 2026
27 checks 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.

2 participants