File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,6 +82,20 @@ Read the [Rust version compatibility policy](README.md#rust-version-compatibilit
8282changing ` rust-version ` ; when the MSRV job fails, the usual fix is in the code or the dependency
8383update, not the MSRV.
8484
85+ ### Pruning Rust dependencies
86+
87+ Use [ cargo-shear] ( https://github.com/Boshen/cargo-shear ) to find unused dependencies. Install it
88+ and inspect the workspace from the repository root:
89+
90+ ``` bash
91+ cargo install --locked cargo-shear
92+ cargo shear
93+ ```
94+
95+ Run ` cargo shear --fix ` to apply suggested fixes, then review the manifest changes. Dependencies
96+ used only by generated code or to enable transitive features may need an entry in the affected
97+ crate's ` [package.metadata.cargo-shear] ` ` ignored ` list, with a comment explaining why.
98+
8599### Python bindings
86100
87101` vortex-data ` is a mixed Python and Rust package. ` uv ` manages its Python environment, and
Original file line number Diff line number Diff line change @@ -56,5 +56,5 @@ name = "chunked_dict_fsst_builder"
5656harness = false
5757required-features = [" _test-harness" ]
5858
59- [package .metadata .cargo-machete ]
59+ [package .metadata .cargo-shear ]
6060ignored = [" fsst-rs" ]
Original file line number Diff line number Diff line change @@ -19,10 +19,6 @@ all-features = true
1919# Referenced only by the generated Protocol Buffers bindings.
2020ignored = [" prost-types" ]
2121
22- [package .metadata .cargo-machete ]
23- # Referenced only by the generated Protocol Buffers bindings.
24- ignored = [" prost-types" ]
25-
2622[lints ]
2723workspace = true
2824
Original file line number Diff line number Diff line change @@ -17,9 +17,6 @@ version = { workspace = true }
1717publish = false
1818
1919[package .metadata .cargo-shear ]
20- ignored = [" libloading" ]
21-
22- [package .metadata .cargo-machete ]
2320# Referenced only by bindgen's generated dynamic library loader.
2421ignored = [" libloading" ]
2522
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ version = { workspace = true }
1414publish = false
1515
1616[package .metadata .cargo-shear ]
17- ignored = [" libloading" ]
18-
19- [package .metadata .cargo-machete ]
2017# Referenced only by bindgen's generated dynamic library loader.
2118ignored = [" libloading" ]
2219
Original file line number Diff line number Diff line change @@ -93,5 +93,5 @@ harness = false
9393[lints ]
9494workspace = true
9595
96- [package .metadata .cargo-machete ]
96+ [package .metadata .cargo-shear ]
9797ignored = [" uuid" ]
You can’t perform that action at this time.
0 commit comments