HyukjinKwon opened a new pull request, #795:
URL: https://github.com/apache/spark-connect-rust/pull/795

   ### What changes were proposed in this pull request?
   
   A follow-up of #770 and #783, which removed the unused `thiserror` 
dependencies that Cargo 1.100's `unused_dependencies` lint warns about. A 
round-2 review found three more, which the lint does not flag:
   - `tokio-stream`, a dependency of `apache-spark-connect-core` and of the 
workspace: no code references `tokio_stream`. tonic depends on it, so it stays 
in `Cargo.lock` and `LICENSE-binary`.
   - `futures`, a normal dependency of `apache-spark-connect`: only its tests 
use it (`tests/is_empty_plan.rs`, `catalog_golden.rs`, 
`create_dataframe_settings.rs` and `common/ml_golden.rs`). It is now a 
dev-dependency. `apache-spark-connect-core` still uses it.
   - arrow's `prettyprint` feature: nothing uses `arrow::util::pretty`, and no 
doc snippet does. It alone pulled `comfy-table`, and through it `unicode-width` 
and `unicode-segmentation`, into the wheels. `LICENSE-binary` is regenerated 
with `scripts/gen_binary_licenses.py` without them.
   
   ### Why are the changes needed?
   
   So that the crates do not pull in, and the wheels do not link, code that 
they do not use.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. The wheels no longer bundle `comfy-table`, `unicode-width` and 
`unicode-segmentation`.
   
   ### How was this patch tested?
   
   - `cargo +1.100.0 check --workspace --all-targets`, and `-p 
apache-spark-connect --all-targets --features wasm-udf,datafusion,polars`.
   - `cargo +1.100.0 clippy -- -D warnings` of `examples/wasm-udfs`, 
`examples/wasm-udf-inline` and `tests/wasm-udf`. `tests/wasm-udf-wasi` needs 
the `wasm32-wasip1` target, which CI's lint job has.
   - `python3 scripts/gen_binary_licenses.py --check` passes.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 5.5
   
   This pull request and its description were written by Isaac.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to