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

   ### What changes were proposed in this pull request?
   
   Publish `apache-spark-connect-macros` and `apache-spark-connect-build` to 
crates.io with the other three crates:
   
   - `.github/workflows/release.yml`: add both crates to the two "every 
published crate ships LICENSE and NOTICE" checks, to the `cargo publish 
--dry-run` of the dry run, and to the `CRATES` that the finalize job publishes.
   - `crates/spark-connect-macros` and `crates/spark-connect-build`: add the 
`LICENSE` and `NOTICE` links to the root files, and the `repository`, 
`homepage` and `authors` of the workspace, as the other published crates have 
them.
   
   ### Why are the changes needed?
   
   The UDF guide (`docs/udfs.md`) tells Rust users to depend on them:
   
   ```toml
   spark-connect-build  = { package = "apache-spark-connect-build",  version = 
"4.3" }
   spark-connect-macros = { package = "apache-spark-connect-macros", version = 
"4.3" }
   ```
   
   The README's UDF example uses `spark_connect_macros::spark_wasm_udf`, and 
the minimum-Rust job of Rust CI already checks both crates as published crates 
("Cargo check the published crates with it"). But the release workflow 
publishes only `apache-spark-connect-proto`, `-core` and 
`apache-spark-connect`, so neither crate is on crates.io: 4.2.0 shipped without 
them, and a project that follows the guide fails to resolve them. Without the 
`LICENSE` and `NOTICE` links, the release workflow's own check would refuse 
them, as ASF releases carry both in every artifact.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. From 4.3.0, `apache-spark-connect-macros` and 
`apache-spark-connect-build` are published to crates.io, so the Rust UDF setup 
of `docs/udfs.md` resolves from crates.io.
   
   ### How was this patch tested?
   
   Ran the release workflow's steps locally on this branch:
   
   - The LICENSE/NOTICE loop over the five crates (`cargo package --list 
--allow-dirty -p <crate>`): every crate packages both files, and the 
missing-metadata warning of the two crates is gone.
   - `cargo publish --dry-run -p apache-spark-connect-proto -p 
apache-spark-connect-core -p apache-spark-connect -p 
apache-spark-connect-macros -p apache-spark-connect-build`: all five crates are 
packaged and verified (built from their packaged sources), so neither of the 
two crates reads a file outside its directory.
   
   ### 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