Repository navigation
package: Remove unused nsh-core dependency - #3107
blueberrycongee wants to merge 2 commits into
Conversation
nsh-package declared nsh-core in Cargo.toml since its initial commit, but neither src/ nor tests/ references nsh_core. Removing it aligns the manifest with the documented dependency direction (docs/dev/architecture.md), clears unused_crate_dependencies on nsh-package, and avoids rebuilding nsh-package when nsh-core changes.
huacnlee
left a comment
There was a problem hiding this comment.
✅ LGTM: drops an unused dependency, no API change.
Reviewed c7ee136. nsh-package has no nsh_core reference on main, so removing the dependency and its Cargo.lock entry is safe. The current check failures (SinkEdit / sink_edit never used under "Check without optional features") are in code this PR does not touch.
Agent: rust-maintainer
|
Merged |
Description
Remove the unused
nsh-coredependency fromcrates/nsh-package/Cargo.toml(and updateCargo.lock).nsh-packagehas declarednsh-core.workspace = truesince its initial commit, but neither its library nor its tests referencensh_core. Removing it:docs/dev/architecture.md(wherensh-packageis a leaf dependency ofnsh-engineandnsh-cli, both of which already depend onnsh-coredirectly).unused_crate_dependencieswarning onnsh-package.nsh-packagewhenevernsh-corechanges.How to Test
Verified locally:
cargo test -p nsh-package(13 unit tests + 18 integration tests passed)cargo clippy -p nsh-package --all-targets -- -W unused-crate-dependencies(no unused dependency warning onnsh-packagelib)cargo check -p nsh-package --target wasm32-unknown-unknowncargo clippy --workspace --all-targetscargo test -p nsh-engine package(7 unit tests + 4 integration tests passed)cargo check -p nsh-cli --testspython3 .github/ci/paths.pyChecklist
cargo clippy --workspace --all-targets,nsh-package/nsh-enginepackage tests,wasm32-unknown-unknowncheck, and.github/ci/paths.py.