Skip to content

#255 refactor: move update_readme tool out of the library crate#256

Merged
RAprogramm merged 1 commit into
mainfrom
255
Jul 8, 2026
Merged

#255 refactor: move update_readme tool out of the library crate#256
RAprogramm merged 1 commit into
mainfrom
255

Conversation

@RAprogramm

Copy link
Copy Markdown
Owner

Closes #255

reqwest (a native blocking HTTP client, pulling hyper/tokio/etc.) and regex were declared as hard [dependencies] of the published crate but used only by the update_readme dev binary — so every downstream user of this WASM SDK compiled them for nothing.

Changes

  • Moved src/bin/update_readme/ into a new non-published workspace member tools/update-readme with its own dependencies.
  • Removed regex and reqwest from the library crate's [dependencies] (both unused by the library; percent-encoding and toml stay — used by core::context and the mock feature).
  • The tool now resolves the repository root by walking up to the [workspace] Cargo.toml instead of CARGO_MANIFEST_DIR.
  • CI refresh step runs cargo run -p update-readme; codecov ignores tools/**.

Result

cargo tree -p telegram-webapp-sdk (default features) now pulls no reqwest / regex / hyper / tokio. Verified: tool + lib tests green (23 + 182), cargo deny ok, clippy/fmt clean, README stays in sync (workspace-root resolution works), reuse lint passes.

@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@RAprogramm RAprogramm merged commit 6c55b5b into main Jul 8, 2026
9 checks passed
@RAprogramm RAprogramm deleted the 255 branch July 8, 2026 06:04
@RAprogramm RAprogramm mentioned this pull request Jul 8, 2026
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.

refactor: move update_readme tool out of the library crate

1 participant