Skip to content

Fix Linux/WSL build: resolve BoringSSL vs OpenSSL linking conflict#2

Open
andrey-golovko wants to merge 1 commit into199-biotechnologies:masterfrom
andrey-golovko:fix/linux-build
Open

Fix Linux/WSL build: resolve BoringSSL vs OpenSSL linking conflict#2
andrey-golovko wants to merge 1 commit into199-biotechnologies:masterfrom
andrey-golovko:fix/linux-build

Conversation

@andrey-golovko
Copy link
Copy Markdown

Summary

  • Fix self_update pulling native-tls (OpenSSL) via default features — conflicts with BoringSSL from rquest
  • Remove readability crate (pulled reqwest@0.11 with native-tls) — replace with tl-based title extraction
  • Binary now builds and links cleanly on Linux x86_64 (WSL)

Fixes #1

Changes

  • Cargo.toml: self_updatedefault-features = false, explicit feature list without default-tls
  • Cargo.toml: Remove readability = "0.3"
  • stealth.rs: Replace readability::extractor::extract with tl-based extract_title + existing extract_text_fallback
  • browserless.rs: Same replacement

Test plan

  • cargo build --release succeeds on Linux x86_64 (Debian 12 / WSL2)
  • Resulting binary runs: search --version returns valid JSON
  • Stealth scraping still works (HTML title + text extraction)
  • Self-update still works with rustls backend

🤖 Generated with Claude Code

Two dependencies pulled native-tls (OpenSSL) into the link, conflicting
with BoringSSL from rquest/boring-sys2:

1. self_update: default features enabled default-tls on reqwest. Fixed by
   disabling default-features and explicitly listing needed features.

2. readability: depended on reqwest@0.11 with native-tls. Removed and
   replaced with tl-based title extraction (already a dependency) plus
   existing text fallback extractors.

Fixes 199-biotechnologies#1

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Linux/WSL build fails: BoringSSL vs OpenSSL linking conflict

1 participant