Skip to content

refactor(deps): simplify dependency tree#1223

Merged
chaliy merged 2 commits intomainfrom
claude/simplify-dependencies-Wgr1O
Apr 11, 2026
Merged

refactor(deps): simplify dependency tree#1223
chaliy merged 2 commits intomainfrom
claude/simplify-dependencies-Wgr1O

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 11, 2026

Summary

  • Remove dead workspace deps: grep, grep-regex, grep-searcher (never used — grep builtin uses regex directly), globset (never imported in source)
  • Remove unused instant from bashkit-bench (code uses std::time::Instant); also removes RUSTSEC-2024-0384 advisory from deny.toml
  • Feature-gate jaq-core/jaq-std/jaq-json behind new jq feature flag (only used in builtins/jq.rs)
  • Replace futures with futures-core + futures-util (drops 5 unused sub-crates)
  • Add dependency tree analysis to maintenance checklist (specs/012-maintenance.md)

Minimal build (no features) drops from 227 to 173 dep lines (-24%).

Test plan

  • cargo check --all-targets --all-features — clean
  • cargo check -p bashkit --no-default-features — clean (verifies jq gating)
  • cargo test --all-features — all pass (except pre-existing SSH integration test)
  • cargo fmt --check — clean
  • cargo clippy --all-targets --all-features -- -D warnings — clean

chaliy added 2 commits April 11, 2026 18:19
- Remove unused workspace deps: grep, grep-regex, grep-searcher, globset
- Remove unused `instant` from bashkit-bench (fixes RUSTSEC-2024-0384)
- Feature-gate jaq-core/jaq-std/jaq-json behind new `jq` feature flag
- Replace `futures` with `futures-core` + `futures-util` (drops 5 sub-crates)
- Enable `jq` feature in CLI, JS, Python, and eval crates

Minimal build (no features) drops from 227 to 173 dep lines (-24%).
Ensures dead deps, ungated single-use deps, bloated crates, and
duplicate transitive versions are caught during every maintenance pass.
@chaliy chaliy force-pushed the claude/simplify-dependencies-Wgr1O branch from 3d6571e to f1850e1 Compare April 11, 2026 18:25
@chaliy chaliy merged commit 7f2924d into main Apr 11, 2026
27 checks passed
@chaliy chaliy deleted the claude/simplify-dependencies-Wgr1O branch April 11, 2026 18:33
chaliy added a commit that referenced this pull request Apr 11, 2026
test_text_file_json requires the jq feature (gated in #1223) but CI
runs with --features http_client,ssh. Add #[cfg(feature = "jq")] to
skip when jq is not compiled in.
chaliy added a commit that referenced this pull request Apr 11, 2026
jq_fuzz_scaffold_tests, jq_spec_tests, and azure skill tests that
use jq need #[cfg(feature = "jq")] since #1223 feature-gated jaq deps.
chaliy added a commit that referenced this pull request Apr 11, 2026
Scan /dev/fd for proc_sub_* files after each Bash::exec() call.
Cleanup runs outside the recursive async call chain to avoid
increasing stack frame size (which would regress #1089 stack overflow).

Also restore tests deleted by previous commit, revert #[ignore] on
ssh_supabase test, and gate jq-dependent tests behind #[cfg(feature = "jq")]
since #1223 feature-gated jaq deps.
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