Skip to content

refactor: use selective tokio features and fix blocking fs in async#296

Merged
vieiralucas merged 1 commit intomainfrom
worktree-code-quality-fixes
Apr 12, 2026
Merged

refactor: use selective tokio features and fix blocking fs in async#296
vieiralucas merged 1 commit intomainfrom
worktree-code-quality-fixes

Conversation

@vieiralucas
Copy link
Copy Markdown
Member

@vieiralucas vieiralucas commented Apr 12, 2026

Summary

  • Replace tokio = { features = ["full"] } with explicit feature set to avoid unnecessary dependencies
  • Wrap extract_zip() in spawn_blocking to avoid blocking the async runtime during Lambda container cold starts

Test plan

  • Full workspace builds cleanly
  • cargo clippy --workspace --all-targets -D warnings clean
  • Lambda extract_zip unit test passes
  • CI green

Summary by cubic

Tightened tokio features to only what's needed and moved ZIP extraction to a blocking task to keep the async runtime responsive during Lambda cold starts.

  • Dependencies

    • Replaced tokio = { features = ["full"] } with explicit features: macros, rt-multi-thread, net, io-util, time, signal, sync, process, fs.
  • Bug Fixes

    • Wrapped extract_zip() in tokio::task::spawn_blocking to avoid blocking the async runtime during container setup.

Written for commit fce0663. Summary will update on new commits.

- Replace tokio features = ["full"] with explicit feature list
  (macros, rt-multi-thread, net, io-util, time, signal, sync,
  process, fs) to avoid pulling in unused features
- Wrap extract_zip() call in spawn_blocking to avoid blocking the
  async runtime during Lambda container cold start ZIP extraction
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@vieiralucas vieiralucas merged commit 2e35247 into main Apr 12, 2026
22 checks passed
@vieiralucas vieiralucas deleted the worktree-code-quality-fixes branch April 12, 2026 16:29
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