Skip to content

refactor(core): stabilize v1.0.7 by removing dead code and unstable FFI dependencies#13

Merged
XaviCode1000 merged 5 commits into
mainfrom
chore/cleanup-dead-code-zvec-bumpalo
Mar 31, 2026
Merged

refactor(core): stabilize v1.0.7 by removing dead code and unstable FFI dependencies#13
XaviCode1000 merged 5 commits into
mainfrom
chore/cleanup-dead-code-zvec-bumpalo

Conversation

@XaviCode1000

Copy link
Copy Markdown
Owner

Summary

  • Remove bumpalo: Arena allocator imported but never used — Bump::new() created and immediately dropped. Dead code with dependency weight.
  • Remove zvec: Entire feature was a stub. ZvecExporter::is_available() always returned false, export() always returned "not yet implemented". The zvec-sys crate required CMake/C++ and had build failures.
  • Clean documentation: Remove all 39 zvec references from 7 .md files to keep docs in sync with code.

Impact

Before After
full = [images, documents, zvec] full = [images, documents]
1 FFI/CMake dependency (zvec-sys) 0 FFI dependencies (Pure Rust)
39 stale doc references 2 historical annotations
267 tests (2 tested stub errors) 265 tests (all test real functionality)
-304 net lines Lean, honest codebase

Files Changed

  • Cargo.toml — Remove bumpalo dep + zvec feature + zvec-sys dep
  • src/infrastructure/ai/chunker.rs — Remove bumpalo import + dead arena code
  • src/infrastructure/export/zvec_exporter.rsDeleted (96 lines of stub)
  • src/infrastructure/export/mod.rs — Remove zvec module
  • src/domain/entities.rs — Remove ExportFormat::Zvec variant
  • src/domain/exporter.rs — Remove zvec tests
  • src/export_factory.rs — Remove ZvecExporter references
  • src/lib.rs — Remove zvec re-export + docs
  • src/main.rs — Remove zvec validation block
  • README.md + 6 doc files — Remove all zvec references

Verification

  • cargo check — compiles cleanly
  • cargo nextest run --test-threads 2 — 265/265 passing
  • cargo clippy -- -D warnings — zero warnings
  • ✅ CI/CD: no cmake/zvec references in GitHub Actions
  • ✅ Docs: only 2 historical annotations remain (intentional)

Related

Developer and others added 5 commits March 31, 2026 21:41
V1 - WAF/CAPTCHA Detection: Add detect_waf_challenge() with 19 WAF
signatures (Cloudflare, reCAPTCHA, hCaptcha, DataDome, PerimeterX,
Akamai) to detect false HTTP 200 responses. Retries with UA rotation
once before returning WafBlocked error.

V2 - Race Condition Fix: Add fs2 file locking to state_store.rs.
Exclusive lock on save(), shared lock on load() prevents data
corruption with parallel instances.

V4 - TUI Panic Hook: Each restoration step runs independently.
Partial failures no longer corrupt terminal state.

V5 - OOM Protection: Streaming size limits in sitemap_parser.rs.
HTTP response capped at 50MB, GZIP decompression at 100MB.

Tests: 267/267 passing (+15 new WAF tests), 0 clippy warnings.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Remove bumpalo: arena allocator imported but never used. The
Bump::new() at chunker.rs:177 was created and immediately dropped.
Removing unnecessary dependency weight.

Remove zvec: entire feature was a stub. ZvecExporter::is_available()
always returned false, export() always returned 'not yet implemented'.
The zvec-sys crate had CMake build failures. Feature flag promised
functionality that didn't exist.

Files deleted: src/infrastructure/export/zvec_exporter.rs (96 lines)
Net: -247 lines, +16 lines across 11 files.

Tests: 265/265 passing, 0 clippy warnings.
Cleaned 7 .md files removing zvec as an available feature:
- README.md: feature flags table, optional deps
- docs/RAG-EXPORT.md: ZvecExporter status, file tree, checklist
- docs/USAGE.md: format table, Zvec Format section, troubleshooting
- docs/CLI.md: format tables, examples, feature flags
- docs/ARCHITECTURE.md: feature list, file tree, export module
- docs/CONTRIBUTING.md: optional deps, feature flags
- docs/CHANGES.md: annotated historical entry as 'removed in v1.0.7'

Only 2 remaining references are intentional historical annotations.
@XaviCode1000
XaviCode1000 merged commit 7c2e758 into main Mar 31, 2026
@XaviCode1000
XaviCode1000 deleted the chore/cleanup-dead-code-zvec-bumpalo branch March 31, 2026 21:32
XaviCode1000 added a commit that referenced this pull request May 20, 2026
…-bumpalo

refactor(core): stabilize v1.0.7 by removing dead code and unstable FFI dependencies
XaviCode1000 added a commit that referenced this pull request May 20, 2026
…-bumpalo

refactor(core): stabilize v1.0.7 by removing dead code and unstable FFI dependencies
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.

feat(v1.1): migrate to wreq for TLS fingerprint impersonation (Layer 2 WAF Evasion)

1 participant