This is an automated email from the ASF dual-hosted git repository.
HyukjinKwon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark-connect-rust.git
The following commit(s) were added to refs/heads/master by this push:
new 08d1f561 [SPARK-61618][CONNECT][BUILD] Ship LICENSE-binary and
NOTICE-binary for the Rust dependencies that the wheels of Spark Connect Rust
bundle
08d1f561 is described below
commit 08d1f561c590959735e9a6f927ec80a576fb0d9e
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Fri Nov 13 15:06:51 2026 +0900
[SPARK-61618][CONNECT][BUILD] Ship LICENSE-binary and NOTICE-binary for the
Rust dependencies that the wheels of Spark Connect Rust bundle
### What changes were proposed in this pull request?
This PR adds `LICENSE-binary` and `NOTICE-binary` for the Rust dependencies
that the wheels statically link, following ASF's guidance for binary
distributions.
- `scripts/gen_binary_licenses.py` writes both files from `cargo metadata
--locked`. It follows the normal (non-dev, non-build) dependency edges of
`pyspark-rs` for all platforms, and excludes the workspace's own crates and
proc-macro crates, which are not linked. That gives 171 components.
- 128 components offer Apache-2.0 as an option, for example `MIT OR
Apache-2.0`. They are listed with their license expression under Apache-2.0.
- The other 43 are listed under their expression. Their own license files
are reproduced verbatim after the summary, so their copyright notices travel
with them: MIT, BSD-2/3-Clause, ISC, Unlicense, Unicode-3.0, and the
`Apache-2.0 AND ...` forms. tonic-prost 0.14.6 ships no license file, so the
generator uses tonic 0.14.6's (MIT; same release, same repository) through an
explicit fallback.
- `NOTICE-binary` is this project's NOTICE followed by the NOTICE of the
bundled Apache-2.0 crates that have one: the arrow crates' NOTICE, shared by 13
crates.
- `--check` exits 1 when the files are stale, and lint.yml runs it.
- maturin declares `LICENSE-binary` and `NOTICE-binary` as `License-File`
and puts them in the wheel's `dist-info/licenses/`. The sdist now includes both
too. Without that, the sdist declared files it did not contain, which PyPI
rejects.
No linked component has a GPL, LGPL, AGPL, MPL, EPL or CDDL license as a
required term. The only LGPL is an unused alternative of r-efi (`MIT OR
Apache-2.0 OR LGPL-2.1-or-later`), so the generator doesn't reproduce LGPL
text; doing so would suggest that LGPL code is bundled.
### Why are the changes needed?
The wheels link 171 third-party crates, but their license files cover only
the repository's own third-party code. #609 deferred `LICENSE-binary`, and a
post-merge review flagged it.
### Does this PR introduce _any_ user-facing change?
No code change. The wheels and the sdist carry two more license files.
### How was this patch tested?
- `python3 -m unittest scripts/tests/test_gen_binary_licenses.py`: 7 tests
pass. They cover the expression parser, the Apache election, the proc-macro and
dev-dependency exclusion, the verbatim texts, the NOTICE selection, and
staleness after an edit, a deletion and a missing file.
- `python3 scripts/gen_binary_licenses.py --check` passes on the tree.
After the line `tokio 1.52.3` is removed from `LICENSE-binary`, it prints
"stale: LICENSE-binary" and exits 1.
- A wheel built locally with maturin (macOS arm64) has both files under
`dist-info/licenses/`, identical to the repository's. Every `License-File` the
sdist declares is in the tarball.
- `cargo fmt`, the stub audit, ruff, and the cargo lib and `--no-run` gates
pass.
### 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.
Closes #619 from HyukjinKwon/SPARK-61618-license-binary.
Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
.github/workflows/lint.yml | 4 +
LICENSE-binary | 1972 +++++++++++++++++++++++++++++
NOTICE-binary | 26 +
pyproject.toml | 11 +-
scripts/gen_binary_licenses.py | 401 ++++++
scripts/tests/test_gen_binary_licenses.py | 199 +++
6 files changed, 2612 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index ccba6b54..1bfc7b86 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -64,6 +64,10 @@ jobs:
run: cargo clippy --workspace --all-targets || true
- name: Tooling unit tests
run: python3 -m unittest discover -s scripts/tests
+ - name: LICENSE-binary and NOTICE-binary are up to date
+ # They list the Rust dependencies that the wheels link, from
Cargo.lock. A change of
+ # dependencies without regenerating them (python3
scripts/gen_binary_licenses.py) fails.
+ run: python3 scripts/gen_binary_licenses.py --check
python-ruff:
name: ruff (our scripts, tests and hand-written pyspark shim)
diff --git a/LICENSE-binary b/LICENSE-binary
new file mode 100644
index 00000000..97ea8295
--- /dev/null
+++ b/LICENSE-binary
@@ -0,0 +1,1972 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+------------------------------------------------------------------------------------
+This project bundles some components that are also licensed under the Apache
+License Version 2.0. Each is listed with its license expression. The components
+whose expression offers Apache-2.0 as an option are used under Apache-2.0.
+
+ahash 0.8.12 (MIT OR Apache-2.0)
+android_system_properties 0.1.5 (MIT/Apache-2.0)
+arrow 59.3.2 (Apache-2.0)
+arrow-arith 59.3.2 (Apache-2.0)
+arrow-buffer 59.3.2 (Apache-2.0)
+arrow-cast 59.3.2 (Apache-2.0)
+arrow-data 59.3.2 (Apache-2.0)
+arrow-ipc 59.3.2 (Apache-2.0)
+arrow-ord 59.3.2 (Apache-2.0)
+arrow-pyarrow 59.3.2 (Apache-2.0)
+arrow-row 59.3.2 (Apache-2.0)
+arrow-schema 59.3.2 (Apache-2.0)
+arrow-select 59.3.2 (Apache-2.0)
+arrow-string 59.3.2 (Apache-2.0)
+atomic-waker 1.1.2 (Apache-2.0 OR MIT)
+base64 0.21.7 (MIT OR Apache-2.0)
+base64 0.22.1 (MIT OR Apache-2.0)
+base64 0.23.1 (MIT OR Apache-2.0)
+bitflags 2.13.0 (MIT OR Apache-2.0)
+block-buffer 0.10.4 (MIT OR Apache-2.0)
+cfg-if 1.0.4 (MIT OR Apache-2.0)
+chrono 0.4.45 (MIT OR Apache-2.0)
+const-random 0.1.18 (MIT OR Apache-2.0)
+core-foundation 0.10.1 (MIT OR Apache-2.0)
+core-foundation-sys 0.8.7 (MIT OR Apache-2.0)
+cpufeatures 0.2.17 (MIT OR Apache-2.0)
+crc32fast 1.5.0 (MIT OR Apache-2.0)
+crypto-common 0.1.7 (MIT OR Apache-2.0)
+digest 0.10.7 (MIT OR Apache-2.0)
+equivalent 1.0.2 (Apache-2.0 OR MIT)
+flatbuffers 25.12.19 (Apache-2.0)
+fnv 1.0.7 (Apache-2.0 / MIT)
+futures 0.3.32 (MIT OR Apache-2.0)
+futures-channel 0.3.32 (MIT OR Apache-2.0)
+futures-core 0.3.32 (MIT OR Apache-2.0)
+futures-executor 0.3.32 (MIT OR Apache-2.0)
+futures-io 0.3.32 (MIT OR Apache-2.0)
+futures-sink 0.3.32 (MIT OR Apache-2.0)
+futures-task 0.3.32 (MIT OR Apache-2.0)
+futures-util 0.3.32 (MIT OR Apache-2.0)
+getrandom 0.2.17 (MIT OR Apache-2.0)
+getrandom 0.3.4 (MIT OR Apache-2.0)
+getrandom 0.4.2 (MIT OR Apache-2.0)
+half 2.7.1 (MIT OR Apache-2.0)
+hashbrown 0.17.1 (MIT OR Apache-2.0)
+http 1.4.2 (MIT OR Apache-2.0)
+httparse 1.10.1 (MIT OR Apache-2.0)
+httpdate 1.0.3 (MIT OR Apache-2.0)
+hyper-timeout 0.5.2 (MIT OR Apache-2.0)
+iana-time-zone 0.1.65 (MIT OR Apache-2.0)
+iana-time-zone-haiku 0.1.2 (MIT OR Apache-2.0)
+indexmap 2.14.0 (Apache-2.0 OR MIT)
+itoa 1.0.18 (MIT OR Apache-2.0)
+js-sys 0.3.100 (MIT OR Apache-2.0)
+lexical-core 1.0.6 (MIT/Apache-2.0)
+lexical-parse-float 1.0.6 (MIT/Apache-2.0)
+lexical-parse-integer 1.0.6 (MIT/Apache-2.0)
+lexical-util 1.0.7 (MIT/Apache-2.0)
+lexical-write-float 1.0.6 (MIT/Apache-2.0)
+lexical-write-integer 1.0.6 (MIT/Apache-2.0)
+libc 0.2.186 (MIT OR Apache-2.0)
+log 0.4.32 (MIT OR Apache-2.0)
+mime 0.3.17 (MIT OR Apache-2.0)
+num-bigint 0.5.1 (MIT OR Apache-2.0)
+num-complex 0.4.6 (MIT OR Apache-2.0)
+num-integer 0.1.46 (MIT OR Apache-2.0)
+num-traits 0.2.19 (MIT OR Apache-2.0)
+once_cell 1.21.4 (MIT OR Apache-2.0)
+openssl-probe 0.2.1 (MIT OR Apache-2.0)
+percent-encoding 2.3.2 (MIT OR Apache-2.0)
+pin-project 1.1.13 (Apache-2.0 OR MIT)
+pin-project-lite 0.2.17 (Apache-2.0 OR MIT)
+portable-atomic 1.13.1 (Apache-2.0 OR MIT)
+prost 0.14.4 (Apache-2.0)
+prost-types 0.14.4 (Apache-2.0)
+psm 0.1.31 (MIT OR Apache-2.0)
+pyo3 0.29.3 (MIT OR Apache-2.0)
+pyo3-ffi 0.29.3 (MIT OR Apache-2.0)
+r-efi 5.3.0 (MIT OR Apache-2.0 OR LGPL-2.1-or-later)
+r-efi 6.0.0 (MIT OR Apache-2.0 OR LGPL-2.1-or-later)
+regex 1.12.4 (MIT OR Apache-2.0)
+regex-automata 0.4.14 (MIT OR Apache-2.0)
+regex-syntax 0.8.11 (MIT OR Apache-2.0)
+rustls 0.23.40 (Apache-2.0 OR ISC OR MIT)
+rustls-native-certs 0.8.4 (Apache-2.0 OR ISC OR MIT)
+rustls-pki-types 1.14.1 (MIT OR Apache-2.0)
+ryu 1.0.23 (Apache-2.0 OR BSL-1.0)
+security-framework 3.7.0 (MIT OR Apache-2.0)
+security-framework-sys 2.17.0 (MIT OR Apache-2.0)
+serde 1.0.228 (MIT OR Apache-2.0)
+serde_core 1.0.228 (MIT OR Apache-2.0)
+serde_json 1.0.150 (MIT OR Apache-2.0)
+sha2 0.10.9 (MIT OR Apache-2.0)
+smallvec 1.15.1 (MIT OR Apache-2.0)
+socket2 0.6.4 (MIT OR Apache-2.0)
+stacker 0.1.24 (MIT OR Apache-2.0)
+sync_wrapper 1.0.2 (Apache-2.0)
+thiserror 2.0.18 (MIT OR Apache-2.0)
+tokio-rustls 0.26.4 (MIT OR Apache-2.0)
+typenum 1.20.1 (MIT OR Apache-2.0)
+unicode-segmentation 1.13.3 (MIT OR Apache-2.0)
+unicode-width 0.2.2 (MIT OR Apache-2.0)
+uuid 1.23.3 (Apache-2.0 OR MIT)
+wasi 0.11.1+wasi-snapshot-preview1 (Apache-2.0 WITH LLVM-exception OR
Apache-2.0 OR MIT)
+wasip2 1.0.3+wasi-0.2.9 (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT)
+wasip3 0.4.0+wasi-0.3.0-rc-2026-01-06 (Apache-2.0 WITH LLVM-exception OR
Apache-2.0 OR MIT)
+wasm-bindgen 0.2.123 (MIT OR Apache-2.0)
+wasm-bindgen-shared 0.2.123 (MIT OR Apache-2.0)
+windows-core 0.62.2 (MIT OR Apache-2.0)
+windows-link 0.2.1 (MIT OR Apache-2.0)
+windows-result 0.4.1 (MIT OR Apache-2.0)
+windows-strings 0.5.1 (MIT OR Apache-2.0)
+windows-sys 0.52.0 (MIT OR Apache-2.0)
+windows-sys 0.61.2 (MIT OR Apache-2.0)
+windows-targets 0.52.6 (MIT OR Apache-2.0)
+windows_aarch64_gnullvm 0.52.6 (MIT OR Apache-2.0)
+windows_aarch64_msvc 0.52.6 (MIT OR Apache-2.0)
+windows_i686_gnu 0.52.6 (MIT OR Apache-2.0)
+windows_i686_gnullvm 0.52.6 (MIT OR Apache-2.0)
+windows_i686_msvc 0.52.6 (MIT OR Apache-2.0)
+windows_x86_64_gnu 0.52.6 (MIT OR Apache-2.0)
+windows_x86_64_gnullvm 0.52.6 (MIT OR Apache-2.0)
+windows_x86_64_msvc 0.52.6 (MIT OR Apache-2.0)
+wit-bindgen 0.51.0 (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT)
+wit-bindgen 0.57.1 (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT)
+zerocopy 0.8.52 (BSD-2-Clause OR Apache-2.0 OR MIT)
+zeroize 1.8.2 (Apache-2.0 OR MIT)
+zstd-safe 7.2.4 (MIT OR Apache-2.0)
+
+------------------------------------------------------------------------------------
+This product bundles various third-party components under other open source
+licenses. This section summarizes those components and their licenses. Their
+license texts follow the summary.
+
+(MIT OR Apache-2.0) AND Unicode-3.0
+-----------------------------------
+unicode-ident 1.0.24
+
+Apache-2.0 AND ISC
+------------------
+ring 0.17.14
+
+Apache-2.0 AND MIT
+------------------
+arrow-array 59.3.2
+
+BSD-3-Clause
+------------
+subtle 2.6.1
+
+BSD-3-Clause AND BSD-2-Clause
+-----------------------------
+zstd-sys 2.1.3+zstd.1.5.7
+
+ISC
+---
+rustls-webpki 0.103.13
+untrusted 0.9.0
+
+MIT
+---
+atoi 2.0.0
+axum 0.8.9
+axum-core 0.5.6
+bytes 1.11.1
+comfy-table 7.2.2
+crunchy 0.2.4
+generic-array 0.14.7
+h2 0.4.14
+http-body 1.0.1
+http-body-util 0.1.3
+hyper 1.10.1
+hyper-util 0.1.20
+libm 0.2.16
+lz4_flex 0.14.0
+mio 1.2.1
+schannel 0.1.29
+sha2-asm 0.6.4
+slab 0.4.12
+tokio 1.52.3
+tokio-stream 0.1.18
+tokio-util 0.7.18
+tonic 0.14.6
+tonic-prost 0.14.6
+tower 0.5.3
+tower-layer 0.3.3
+tower-service 0.3.3
+tracing 0.1.44
+tracing-core 0.1.36
+try-lock 0.2.5
+twox-hash 2.1.2
+want 0.3.1
+zmij 1.0.21
+zstd 0.13.3
+
+MIT AND BSD-3-Clause
+--------------------
+matchit 0.8.4
+
+Unlicense OR MIT
+----------------
+aho-corasick 1.1.4
+memchr 2.8.1
+
+------------------------------------------------------------------------------------
+The Python and data components of the wheels are not Rust dependencies. They
are
+listed in LICENSE: python/pyspark/loose_version.py (Python Software Foundation
+License), python/pyspark/cloudpickle/*.py, python/pyspark/_globals.py (BSD
+3-Clause), python/pyspark/errors/exceptions/tblib.py (BSD 2-Clause), and
+crates/spark-connect/src/srs_registry.csv (MIT, PROJ).
+
+------------------------------------------------------------------------------------
+The license of aho-corasick 1.1.4 (Unlicense OR MIT), from COPYING:
+
+This project is dual-licensed under the Unlicense and MIT licenses.
+
+You may use this code under the terms of either license.
+
+------------------------------------------------------------------------------------
+The license of aho-corasick 1.1.4 (Unlicense OR MIT), from LICENSE-MIT:
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Andrew Gallant
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of aho-corasick 1.1.4 (Unlicense OR MIT), from UNLICENSE:
+
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org/>
+
+------------------------------------------------------------------------------------
+The license of arrow-array 59.3.2 (Apache-2.0 AND MIT), from LICENSE-MIT:
+
+MIT License
+
+Copyright (c) 2020-2022 Oliver Margetts
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of atoi 2.0.0 (MIT), from LICENSE:
+
+MIT License
+
+Copyright (c) 2017
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of axum 0.8.9 (MIT), from LICENSE:
+
+Copyright (c) 2019 axum Contributors
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of axum-core 0.5.6 (MIT), from LICENSE:
+
+MIT License
+
+Copyright (c) 2019–2025 axum Contributors
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of bytes 1.11.1 (MIT), from LICENSE:
+
+Copyright (c) 2018 Carl Lerche
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of comfy-table 7.2.2 (MIT), from LICENSE:
+
+MIT License
+
+Copyright (c) 2019 Arne Beer
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of crunchy 0.2.4 (MIT), from LICENSE:
+
+The MIT License (MIT)
+
+Copyright 2017-2023 Eira Fransham.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of generic-array 0.14.7 (MIT), from LICENSE:
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Bartłomiej Kamiński
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of h2 0.4.14 (MIT), from LICENSE:
+
+Copyright (c) 2017 h2 authors
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of http-body 1.0.1 (MIT), from LICENSE:
+
+Copyright (c) 2019-2024 Sean McArthur & Hyper Contributors
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of http-body-util 0.1.3 (MIT), from LICENSE:
+
+Copyright (c) 2019-2025 Sean McArthur & Hyper Contributors
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of hyper 1.10.1 (MIT), from LICENSE:
+
+Copyright (c) 2014-2026 Sean McArthur
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of hyper-util 0.1.20 (MIT), from LICENSE:
+
+Copyright (c) 2023-2025 Sean McArthur
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of libm 0.2.16 (MIT), from LICENSE.txt:
+
+rust-lang/libm as a whole is available for use under the MIT license:
+
+------------------------------------------------------------------------------
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+------------------------------------------------------------------------------
+
+As a contributor, you agree that your code can be used under either the MIT
+license or the Apache-2.0 license:
+
+------------------------------------------------------------------------------
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+------------------------------------------------------------------------------
+
+This Rust library contains the following copyrights:
+
+ Copyright (c) 2018 Jorge Aparicio
+
+Portions of this software are derived from third-party works licensed under
+terms compatible with the above MIT license:
+
+* musl libc https://www.musl-libc.org/. This library contains the following
+ copyright:
+
+ Copyright © 2005-2020 Rich Felker, et al.
+
+* The CORE-MATH project https://core-math.gitlabpages.inria.fr/. CORE-MATH
+ routines are available under the MIT license on a per-file basis.
+
+The musl libc COPYRIGHT file also includes the following notice relevant to
+math portions of the library:
+
+------------------------------------------------------------------------------
+Much of the math library code (src/math/* and src/complex/*) is
+Copyright © 1993,2004 Sun Microsystems or
+Copyright © 2003-2011 David Schultz or
+Copyright © 2003-2009 Steven G. Kargl or
+Copyright © 2003-2009 Bruce D. Evans or
+Copyright © 2008 Stephen L. Moshier or
+Copyright © 2017-2018 Arm Limited
+and labelled as such in comments in the individual source files. All
+have been licensed under extremely permissive terms.
+------------------------------------------------------------------------------
+
+Copyright notices are retained in src/* files where relevant.
+
+------------------------------------------------------------------------------------
+The license of lz4_flex 0.14.0 (MIT), from LICENSE:
+
+The MIT License (MIT)
+
+Copyright (c) 2020 Pascal Seitz
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of matchit 0.8.4 (MIT AND BSD-3-Clause), from LICENSE:
+
+MIT License
+
+Copyright (c) 2022 Ibraheem Ahmed
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of matchit 0.8.4 (MIT AND BSD-3-Clause), from LICENSE.httprouter:
+
+BSD 3-Clause License
+
+Copyright (c) 2013, Julien Schmidt
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+------------------------------------------------------------------------------------
+The license of memchr 2.8.1 (Unlicense OR MIT), from COPYING:
+
+This project is dual-licensed under the Unlicense and MIT licenses.
+
+You may use this code under the terms of either license.
+
+------------------------------------------------------------------------------------
+The license of memchr 2.8.1 (Unlicense OR MIT), from LICENSE-MIT:
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Andrew Gallant
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of memchr 2.8.1 (Unlicense OR MIT), from UNLICENSE:
+
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org/>
+
+------------------------------------------------------------------------------------
+The license of mio 1.2.1 (MIT), from LICENSE:
+
+Copyright (c) 2014 Carl Lerche and other MIO contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of ring 0.17.14 (Apache-2.0 AND ISC), from LICENSE:
+
+*ring* uses an "ISC" license, like BoringSSL used to use, for new code
+files. See LICENSE-other-bits for the text of that license.
+
+See LICENSE-BoringSSL for code that was sourced from BoringSSL under the
+Apache 2.0 license. Some code that was sourced from BoringSSL under the ISC
+license. In each case, the license info is at the top of the file.
+
+See src/polyfill/once_cell/LICENSE-APACHE and
src/polyfill/once_cell/LICENSE-MIT
+for the license to code that was sourced from the once_cell project.
+
+------------------------------------------------------------------------------------
+The license of ring 0.17.14 (Apache-2.0 AND ISC), from LICENSE-other-bits:
+
+Copyright 2015-2025 Brian Smith.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of rustls-webpki 0.103.13 (ISC), from LICENSE:
+
+Except as otherwise noted, this project is licensed under the following
+(ISC-style) terms:
+
+Copyright 2015 Brian Smith.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+The files under third-party/chromium are licensed as described in
+third-party/chromium/LICENSE.
+
+------------------------------------------------------------------------------------
+The license of schannel 0.1.29 (MIT), from LICENSE.md:
+
+Copyright (c) 2015 steffengy
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of sha2-asm 0.6.4 (MIT), from LICENSE:
+
+Copyright (c) 2020 RustCrypto Developers
+Copyright (c) 2017 Project Nayuki, Artyom Pavlov
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of slab 0.4.12 (MIT), from LICENSE:
+
+Copyright (c) 2019 Carl Lerche
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of subtle 2.6.1 (BSD-3-Clause), from LICENSE:
+
+Copyright (c) 2016-2017 Isis Agora Lovecruft, Henry de Valence. All rights
reserved.
+Copyright (c) 2016-2024 Isis Agora Lovecruft. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+------------------------------------------------------------------------------------
+The license of tokio 1.52.3 (MIT), from LICENSE:
+
+MIT License
+
+Copyright (c) Tokio Contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of tokio-stream 0.1.18 (MIT), from LICENSE:
+
+MIT License
+
+Copyright (c) Tokio Contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of tokio-util 0.7.18 (MIT), from LICENSE:
+
+MIT License
+
+Copyright (c) Tokio Contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of tonic 0.14.6 (MIT), from LICENSE:
+
+Copyright (c) 2025 Lucio Franco
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of tonic-prost 0.14.6 (MIT), from LICENSE:
+
+Copyright (c) 2025 Lucio Franco
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of tower 0.5.3 (MIT), from LICENSE:
+
+Copyright (c) 2019 Tower Contributors
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of tower-layer 0.3.3 (MIT), from LICENSE:
+
+Copyright (c) 2019 Tower Contributors
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of tower-service 0.3.3 (MIT), from LICENSE:
+
+Copyright (c) 2019 Tower Contributors
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of tracing 0.1.44 (MIT), from LICENSE:
+
+Copyright (c) 2019 Tokio Contributors
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of tracing-core 0.1.36 (MIT), from LICENSE:
+
+Copyright (c) 2019 Tokio Contributors
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of try-lock 0.2.5 (MIT), from LICENSE:
+
+Copyright (c) 2018-2023 Sean McArthur
+Copyright (c) 2016 Alex Crichton
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of twox-hash 2.1.2 (MIT), from LICENSE.txt:
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Jake Goulding
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of unicode-ident 1.0.24 ((MIT OR Apache-2.0) AND Unicode-3.0),
from LICENSE-MIT:
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of unicode-ident 1.0.24 ((MIT OR Apache-2.0) AND Unicode-3.0),
from LICENSE-UNICODE:
+
+UNICODE LICENSE V3
+
+COPYRIGHT AND PERMISSION NOTICE
+
+Copyright © 1991-2023 Unicode, Inc.
+
+NOTICE TO USER: Carefully read the following legal agreement. BY
+DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
+SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
+TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
+DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of data files and any associated documentation (the "Data Files") or
+software and any associated documentation (the "Software") to deal in the
+Data Files or Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, and/or sell
+copies of the Data Files or Software, and to permit persons to whom the
+Data Files or Software are furnished to do so, provided that either (a)
+this copyright and permission notice appear with all copies of the Data
+Files or Software, or (b) this copyright and permission notice appear in
+associated Documentation.
+
+THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
+KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
+THIRD PARTY RIGHTS.
+
+IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
+BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
+OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
+FILES OR SOFTWARE.
+
+Except as contained in this notice, the name of a copyright holder shall
+not be used in advertising or otherwise to promote the sale, use or other
+dealings in these Data Files or Software without prior written
+authorization of the copyright holder.
+
+------------------------------------------------------------------------------------
+The license of untrusted 0.9.0 (ISC), from LICENSE.txt:
+
+// Copyright 2015-2016 Brian Smith.
+//
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted, provided that the above
+// copyright notice and this permission notice appear in all copies.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
+// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
+// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of want 0.3.1 (MIT), from LICENSE:
+
+Copyright (c) 2018-2019 Sean McArthur
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of zmij 1.0.21 (MIT), from LICENSE-MIT:
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of zstd 0.13.3 (MIT), from LICENSE:
+
+The MIT License (MIT)
+Copyright (c) 2016 Alexandre Bury
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+
+------------------------------------------------------------------------------------
+The license of zstd-sys 2.1.3+zstd.1.5.7 (BSD-3-Clause AND BSD-2-Clause), from
LICENSE:
+
+BSD 3-Clause License
+
+Copyright (c) 2026, Alexandre Bury
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+------------------------------------------------------------------------------------
+The license of zstd-sys 2.1.3+zstd.1.5.7 (BSD-3-Clause AND BSD-2-Clause), from
LICENSE.BSD-2-Clause:
+
+The decoders for legacy formats, in zstd/lib/legacy/, include code under the
+2-clause BSD license:
+
+BSD 2-Clause License
+
+Copyright (C) 2013-2016, Yann Collet.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+copyright notice, this list of conditions and the following disclaimer
+in the documentation and/or other materials provided with the
+distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+------------------------------------------------------------------------------------
+The license of zstd-sys 2.1.3+zstd.1.5.7 (BSD-3-Clause AND BSD-2-Clause), from
LICENSE.BSD-3-Clause:
+
+The auto-generated bindings are under the 3-clause BSD license:
+
+BSD License
+
+For Zstandard software
+
+Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
modification,
+are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name Facebook, nor Meta, nor the names of its contributors may
+ be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/NOTICE-binary b/NOTICE-binary
new file mode 100644
index 00000000..34ec019f
--- /dev/null
+++ b/NOTICE-binary
@@ -0,0 +1,26 @@
+Apache Spark Connect Rust Client
+Copyright 2023 and onwards The Apache Software Foundation.
+
+This product includes software developed at
+The Apache Software Foundation (https://www.apache.org/).
+
+------------------------------------------------------------------------------------
+This product bundles the following components licensed under the Apache License
+2.0, whose NOTICE files require the notices below. Each notice is reproduced
+as its component ships it.
+
+=== NOTICE FOR arrow 59.3.2, arrow-arith 59.3.2, arrow-array 59.3.2,
arrow-buffer 59.3.2, arrow-cast 59.3.2, arrow-data 59.3.2, arrow-ipc 59.3.2,
arrow-ord 59.3.2, arrow-pyarrow 59.3.2, arrow-row 59.3.2, arrow-schema 59.3.2,
arrow-select 59.3.2, arrow-string 59.3.2 ===
+Apache Arrow
+Copyright 2016-2026 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+This product includes software from the chronoutil crate (MIT)
+ * Copyright (c) 2020-2022 Oliver Margetts
+ * https://github.com/olliemath/chronoutil
+
+This product includes software from the compact-thrift project (Apache 2.0)
+ * Copyright Jörn Horstmann
+ * https://github.com/jhorstmann/compact-thrift
+=== END OF NOTICE FOR arrow 59.3.2, arrow-arith 59.3.2, arrow-array 59.3.2,
arrow-buffer 59.3.2, arrow-cast 59.3.2, arrow-data 59.3.2, arrow-ipc 59.3.2,
arrow-ord 59.3.2, arrow-pyarrow 59.3.2, arrow-row 59.3.2, arrow-schema 59.3.2,
arrow-select 59.3.2, arrow-string 59.3.2 ===
diff --git a/pyproject.toml b/pyproject.toml
index 208b487e..ae3e1509 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -322,7 +322,16 @@ manifest-path = "crates/pyspark-rs/Cargo.toml"
# the sdist with "License-File LICENSE does not exist in distribution file".
Ship the
# LICENSE in the sdist so it satisfies the declared metadata. The same holds
for NOTICE, which
# ASF releases carry next to LICENSE.
-include = [{ path = "LICENSE", format = "sdist" }, { path = "NOTICE", format =
"sdist" }]
+# The wheels also statically link the Rust dependencies. LICENSE-binary and
NOTICE-binary
+# (generated by scripts/gen_binary_licenses.py) list them with their licenses
and notices.
+# maturin declares the root LICENSE* and NOTICE* files as License-File of both
artifacts, so
+# the sdist ships the two binary files too, or PyPI rejects it.
+include = [
+ { path = "LICENSE", format = "sdist" },
+ { path = "NOTICE", format = "sdist" },
+ { path = "LICENSE-binary", format = "sdist" },
+ { path = "NOTICE-binary", format = "sdist" },
+]
# Use abi3 for a stable ABI compatible across Python 3.9+.
features = ["pyo3/abi3-py39", "pyo3/extension-module"]
# Keep tests out of the built wheel/sdist: our own offline suite lives outside
the package
diff --git a/scripts/gen_binary_licenses.py b/scripts/gen_binary_licenses.py
new file mode 100644
index 00000000..e664853a
--- /dev/null
+++ b/scripts/gen_binary_licenses.py
@@ -0,0 +1,401 @@
+#!/usr/bin/env python3
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+"""Generate LICENSE-binary and NOTICE-binary for the wheels.
+
+The wheels of pyspark-client-rust (built by maturin from crates/pyspark-rs)
statically link
+the normal dependencies of pyspark-rs. ASF policy asks a binary artifact to
carry a LICENSE
+that lists every bundled third-party component with its license, the texts of
the licenses
+that are not Apache's, and a NOTICE with the notices that Apache-2.0
components require.
+
+The set is taken from `cargo metadata --locked`, so it follows Cargo.lock:
+
+- the normal (not dev, not build) edges from pyspark-rs, for every target
platform;
+- not the workspace's own crates (they are Apache-2.0 and ASF's);
+- not the proc-macro crates, which run at compile time and are not linked into
the wheel.
+
+A component whose license expression offers Apache-2.0 as one option (`MIT OR
Apache-2.0`,
+`Apache-2.0 OR BSL-1.0`, ...) is used under Apache-2.0 and is listed with the
Apache-2.0
+components. Every other component is listed under its license expression, and
the license
+files of its source package are reproduced verbatim in LICENSE-binary, so that
its copyright
+notices travel with it. The NOTICE files of the components that mention
Apache-2.0 are
+reproduced in NOTICE-binary, once per distinct text.
+
+Both files ship in the wheels and the sdist (see [tool.maturin] in
pyproject.toml).
+
+Usage (from the repository root):
+
+ python3 scripts/gen_binary_licenses.py # write the two files
+ python3 scripts/gen_binary_licenses.py --check # fail if they are stale
+
+CI runs the second form. It fails when a dependency is added, removed or
re-licensed without
+regenerating the files.
+"""
+
+import argparse
+import json
+import os
+import re
+import subprocess
+import sys
+
+ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ROOT_PACKAGE = "pyspark-rs"
+APACHE = "Apache-2.0"
+APACHE_TEXT_MARKER = "Version 2.0, January 2004"
+SEPARATOR = "-" * 84
+
+# Crates whose source package ships no license file, mapped to the package
that carries the
+# license of the same release: (name, version) -> (package name, package
version). tonic-prost
+# is part of the tonic repository, which ships MIT's LICENSE with tonic 0.14.6.
+LICENSE_FALLBACK = {("tonic-prost", "0.14.6"): ("tonic", "0.14.6")}
+
+LICENSE_FILE = re.compile(r"^(LICENSE|LICENCE|COPYING|UNLICENSE)",
re.IGNORECASE)
+NOTICE_FILE = re.compile(r"^NOTICE", re.IGNORECASE)
+
+
+class Component:
+ """A crate that the wheels link, with what the outputs need from it."""
+
+ def __init__(self, name, version, license_expr, source_dir, elected):
+ self.name = name
+ self.version = version
+ self.license = license_expr
+ self.source_dir = source_dir
+ self.elected = elected # used under Apache-2.0, as one of the options
+ self.mentions_apache = False
+ self.license_files = [] # (file name, text) of the non-Apache license
texts
+ self.notice = None # text of the NOTICE file, if it mentions
Apache-2.0
+
+ @property
+ def coordinates(self):
+ return f"{self.name} {self.version}"
+
+
+# ---- SPDX license expressions
---------------------------------------------------------
+
+_TOKEN = re.compile(r"\(|\)|/|[A-Za-z0-9.+\-]+")
+
+
+def _parse_expr(expr):
+ """Parse an SPDX-style expression into nested tuples: ('id', name),
('and', a, b), ...
+
+ `/` is the old spelling of OR, and `X WITH Y` is taken as X, the license
it exceptions.
+ """
+ tokens = _TOKEN.findall(expr)
+ pos = 0
+
+ def peek():
+ return tokens[pos] if pos < len(tokens) else None
+
+ def take():
+ nonlocal pos
+ if pos >= len(tokens):
+ raise ValueError(f"unexpected end of license expression: {expr}")
+ tok = tokens[pos]
+ pos += 1
+ return tok
+
+ def primary():
+ tok = take()
+ if tok == "(":
+ node = or_expr()
+ if take() != ")":
+ raise ValueError(f"unbalanced parentheses in license
expression: {expr}")
+ return node
+ if tok in ("AND", "OR", "WITH", ")", "/"):
+ raise ValueError(f"unexpected {tok!r} in license expression:
{expr}")
+ if peek() == "WITH":
+ take()
+ take() # the exception id
+ return ("id", tok)
+
+ def and_expr():
+ node = primary()
+ while peek() == "AND":
+ take()
+ node = ("and", node, primary())
+ return node
+
+ def or_expr():
+ node = and_expr()
+ while peek() in ("OR", "/"):
+ take()
+ node = ("or", node, and_expr())
+ return node
+
+ node = or_expr()
+ if pos != len(tokens):
+ raise ValueError(f"trailing tokens in license expression: {expr}")
+ return node
+
+
+def _ids(node):
+ if node[0] == "id":
+ return {node[1]}
+ return _ids(node[1]) | _ids(node[2])
+
+
+def permits_apache(node):
+ """True when Apache-2.0 alone satisfies the expression (it is one of the
options)."""
+ if node[0] == "id":
+ return node[1] == APACHE
+ if node[0] == "and":
+ return permits_apache(node[1]) and permits_apache(node[2])
+ return permits_apache(node[1]) or permits_apache(node[2])
+
+
+def mentions_apache(node):
+ return APACHE in _ids(node)
+
+
+# ---- Collecting the components
--------------------------------------------------------
+
+
+def _is_proc_macro(package):
+ kinds = {kind for target in package["targets"] for kind in target["kind"]}
+ return "proc-macro" in kinds and not kinds & {"lib", "rlib", "dylib",
"cdylib", "staticlib"}
+
+
+def linked_packages(meta):
+ """The registry packages that pyspark-rs links, by normal edges, for all
platforms."""
+ packages = {p["id"]: p for p in meta["packages"]}
+ nodes = {n["id"]: n for n in meta["resolve"]["nodes"]}
+ roots = [p["id"] for p in meta["packages"] if p["name"] == ROOT_PACKAGE
and p["source"] is None]
+ if len(roots) != 1:
+ raise SystemExit(f"expected one {ROOT_PACKAGE} package in cargo
metadata")
+ seen = set()
+ stack = [roots[0]]
+ while stack:
+ pkg_id = stack.pop()
+ if pkg_id in seen:
+ continue
+ seen.add(pkg_id)
+ if _is_proc_macro(packages[pkg_id]):
+ continue # compile-time only: its dependencies are not linked
either
+ for dep in nodes[pkg_id]["deps"]:
+ if any(kind["kind"] in (None, "normal") for kind in
dep["dep_kinds"]):
+ stack.append(dep["pkg"])
+ return [
+ packages[i]
+ for i in seen
+ if packages[i]["source"] is not None and not
_is_proc_macro(packages[i])
+ ]
+
+
+def _read(path):
+ with open(path, encoding="utf-8") as f:
+ return f.read()
+
+
+def _is_apache_text(text):
+ return APACHE_TEXT_MARKER in text[:400]
+
+
+def _find_package(meta, key):
+ for p in meta["packages"]:
+ if (p["name"], p["version"]) == key:
+ return p
+ raise SystemExit(f"fallback package {key} is not in cargo metadata")
+
+
+def collect_components(meta):
+ """Build a Component for each linked registry package, sorted by name and
version."""
+ components = []
+ for package in sorted(linked_packages(meta), key=lambda p: (p["name"],
p["version"])):
+ coords = f"{package['name']} {package['version']}"
+ expr = package["license"]
+ if not expr:
+ raise SystemExit(f"{coords} declares no license")
+ node = _parse_expr(expr)
+ source_dir = os.path.dirname(package["manifest_path"])
+ component = Component(
+ package["name"], package["version"], expr, source_dir,
permits_apache(node)
+ )
+ component.mentions_apache = mentions_apache(node)
+ if not component.elected:
+ lic_dir = source_dir
+ key = (package["name"], package["version"])
+ if key in LICENSE_FALLBACK:
+ other = _find_package(meta, LICENSE_FALLBACK[key])
+ lic_dir = os.path.dirname(other["manifest_path"])
+ texts = [
+ (f, _read(os.path.join(lic_dir, f)))
+ for f in sorted(os.listdir(lic_dir))
+ if LICENSE_FILE.match(f)
+ ]
+ texts = [(f, t) for f, t in texts if not _is_apache_text(t)]
+ if not texts:
+ raise SystemExit(f"no license text found for {coords}
({expr})")
+ component.license_files = texts
+ notices = [f for f in sorted(os.listdir(source_dir)) if
NOTICE_FILE.match(f)]
+ if notices and component.mentions_apache:
+ component.notice = "\n".join(
+ _read(os.path.join(source_dir, f)).rstrip() for f in notices
+ )
+ components.append(component)
+ return components
+
+
+# ---- Rendering
-------------------------------------------------------------------------
+
+
+def _apache_text(license_text):
+ """The Apache License 2.0 text at the top of the repository's LICENSE."""
+ lines = license_text.split("\n")
+ idx = next(
+ i
+ for i, line in enumerate(lines)
+ if line.startswith("This product bundles various third-party
components")
+ )
+ if not lines[idx - 1].startswith("----"):
+ raise SystemExit("LICENSE: the third-party section does not follow the
Apache text")
+ return "\n".join(lines[: idx - 1]).rstrip("\n") + "\n"
+
+
+def render_license(components, apache_text):
+ elected = [c for c in components if c.elected]
+ others = [c for c in components if not c.elected]
+ out = [apache_text, "\n", SEPARATOR, "\n"]
+ out.append(
+ "This project bundles some components that are also licensed under the
Apache\n"
+ "License Version 2.0. Each is listed with its license expression. The
components\n"
+ "whose expression offers Apache-2.0 as an option are used under
Apache-2.0.\n\n"
+ )
+ for c in elected:
+ out.append(f"{c.coordinates} ({c.license})\n")
+ out.append("\n" + SEPARATOR + "\n")
+ out.append(
+ "This product bundles various third-party components under other open
source\n"
+ "licenses. This section summarizes those components and their
licenses. Their\n"
+ "license texts follow the summary.\n\n"
+ )
+ headings = {}
+ for c in others:
+ headings.setdefault(c.license, []).append(c)
+ for expr in sorted(headings):
+ out.append(f"{expr}\n{'-' * len(expr)}\n")
+ for c in headings[expr]:
+ out.append(f"{c.coordinates}\n")
+ out.append("\n")
+ out.append(SEPARATOR + "\n")
+ out.append(
+ "The Python and data components of the wheels are not Rust
dependencies. They are\n"
+ "listed in LICENSE: python/pyspark/loose_version.py (Python Software
Foundation\n"
+ "License), python/pyspark/cloudpickle/*.py, python/pyspark/_globals.py
(BSD\n"
+ "3-Clause), python/pyspark/errors/exceptions/tblib.py (BSD 2-Clause),
and\n"
+ "crates/spark-connect/src/srs_registry.csv (MIT, PROJ).\n"
+ )
+ for c in others:
+ for name, text in c.license_files:
+ out.append(
+ f"\n{SEPARATOR}\nThe license of {c.coordinates} ({c.license}),
"
+ f"from {name}:\n\n{text.rstrip()}\n"
+ )
+ return "".join(out)
+
+
+def render_notice(root_notice, components):
+ by_text = {}
+ for c in components:
+ if c.notice is not None:
+ by_text.setdefault(c.notice, []).append(c)
+ out = [root_notice.rstrip("\n") + "\n", "\n", SEPARATOR, "\n"]
+ out.append(
+ "This product bundles the following components licensed under the
Apache License\n"
+ "2.0, whose NOTICE files require the notices below. Each notice is
reproduced\n"
+ "as its component ships it.\n"
+ )
+ for text in sorted(by_text, key=lambda t: by_text[t][0].name):
+ names = ", ".join(c.coordinates for c in by_text[text])
+ out.append(f"\n=== NOTICE FOR {names} ===\n{text}\n=== END OF NOTICE
FOR {names} ===\n")
+ return "".join(out)
+
+
+def build_outputs(meta, license_text, notice_text):
+ """Return {relative path: text} of the two generated files."""
+ components = collect_components(meta)
+ return {
+ "LICENSE-binary": render_license(components,
_apache_text(license_text)),
+ "NOTICE-binary": render_notice(notice_text, components),
+ }
+
+
+def cargo_metadata(root):
+ result = subprocess.run(
+ ["cargo", "metadata", "--format-version", "1", "--locked"],
+ cwd=root,
+ capture_output=True,
+ check=False,
+ )
+ if result.returncode != 0:
+ sys.stderr.write(result.stderr.decode(errors="replace"))
+ raise SystemExit("cargo metadata failed")
+ return json.loads(result.stdout)
+
+
+def generate(root):
+ return build_outputs(
+ cargo_metadata(root),
+ _read(os.path.join(root, "LICENSE")),
+ _read(os.path.join(root, "NOTICE")),
+ )
+
+
+def write(root, outputs):
+ for rel, text in outputs.items():
+ with open(os.path.join(root, rel), "w", encoding="utf-8",
newline="\n") as f:
+ f.write(text)
+
+
+def check(root, outputs):
+ """Return the generated files that are missing or differ from the
generator's output."""
+ stale = []
+ for rel, text in outputs.items():
+ path = os.path.join(root, rel)
+ if not os.path.isfile(path) or _read(path) != text:
+ stale.append(rel)
+ return stale
+
+
+def main(argv=None):
+ parser = argparse.ArgumentParser(description=__doc__.split("\n")[0])
+ parser.add_argument(
+ "--check", action="store_true", help="fail if the outputs are not what
the generator writes"
+ )
+ parser.add_argument("--root", default=ROOT, help=argparse.SUPPRESS)
+ args = parser.parse_args(argv)
+ outputs = generate(args.root)
+ if args.check:
+ stale = check(args.root, outputs)
+ if stale:
+ for rel in stale:
+ print(f"stale: {rel}", file=sys.stderr)
+ print(
+ "Run `python3 scripts/gen_binary_licenses.py` and commit the
result.",
+ file=sys.stderr,
+ )
+ return 1
+ print("LICENSE-binary and NOTICE-binary are up to date.")
+ return 0
+ write(args.root, outputs)
+ print("Wrote LICENSE-binary and NOTICE-binary.")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/scripts/tests/test_gen_binary_licenses.py
b/scripts/tests/test_gen_binary_licenses.py
new file mode 100644
index 00000000..c2cae64d
--- /dev/null
+++ b/scripts/tests/test_gen_binary_licenses.py
@@ -0,0 +1,199 @@
+"""Tests for scripts/gen_binary_licenses.py, on a synthetic `cargo metadata`
document."""
+
+import importlib.util
+import os
+import shutil
+import tempfile
+import unittest
+from pathlib import Path
+
+SCRIPT = Path(__file__).resolve().parents[1] / "gen_binary_licenses.py"
+SPEC = importlib.util.spec_from_file_location("gen_binary_licenses", SCRIPT)
+gen = importlib.util.module_from_spec(SPEC)
+SPEC.loader.exec_module(gen)
+
+MIT_TEXT = "Copyright (c) 2024 Example Author\n\nPermission is hereby granted,
free of charge.\n"
+APACHE_HEAD = (
+ " Apache License\n"
+ " Version 2.0, January 2004\n"
+)
+DUAL_NOTICE = "Example Notice\nCopyright 2024 Example Authors\n"
+
+ROOT_LICENSE = (
+ APACHE_HEAD + "\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND
DISTRIBUTION\n\n"
+ " limitations under the License.\n\n" + "-" * 84 + "\n"
+ "This product bundles various third-party components under other open
source licenses.\n"
+ "This section summarizes those components and their licenses.\n"
+)
+ROOT_NOTICE = "Apache Spark Connect Rust Client\nCopyright 2023 and onwards\n"
+
+
+def _read(path):
+ with open(path, encoding="utf-8") as f:
+ return f.read()
+
+
+class ExpressionTests(unittest.TestCase):
+ def test_apache_option_permits_apache(self):
+ for expr, expected in [
+ ("Apache-2.0", True),
+ ("MIT OR Apache-2.0", True),
+ ("MIT/Apache-2.0", True),
+ ("Apache-2.0 OR BSL-1.0", True),
+ ("Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT", True),
+ ("MIT", False),
+ ("Apache-2.0 AND MIT", False),
+ ("(MIT OR Apache-2.0) AND Unicode-3.0", False),
+ ("Unlicense OR MIT", False),
+ ]:
+ with self.subTest(expr=expr):
+ self.assertEqual(gen.permits_apache(gen._parse_expr(expr)),
expected)
+
+ def test_mentions_apache_anywhere(self):
+ self.assertTrue(gen.mentions_apache(gen._parse_expr("Apache-2.0 AND
MIT")))
+ self.assertFalse(gen.mentions_apache(gen._parse_expr("(MIT OR ISC) AND
Zlib")))
+
+ def test_malformed_expression_is_rejected(self):
+ for expr in ["(MIT OR Apache-2.0", "MIT OR", "AND MIT"]:
+ with self.subTest(expr=expr), self.assertRaises(ValueError):
+ gen._parse_expr(expr)
+
+
+class OutputTests(unittest.TestCase):
+ def setUp(self):
+ self.tmp = tempfile.mkdtemp()
+ self.addCleanup(shutil.rmtree, self.tmp, ignore_errors=True)
+ self.src = os.path.join(self.tmp, "registry")
+ self.root = os.path.join(self.tmp, "repo")
+ os.makedirs(self.root)
+
+ def _crate(self, name, version, files):
+ d = os.path.join(self.src, f"{name}-{version}")
+ os.makedirs(d)
+ for fname, text in files.items():
+ with open(os.path.join(d, fname), "w", encoding="utf-8") as f:
+ f.write(text)
+ return os.path.join(d, "Cargo.toml")
+
+ def _metadata(self):
+ registry = "registry+https://github.com/rust-lang/crates.io-index"
+ packages = [
+ {
+ "id": "pyspark-rs",
+ "name": "pyspark-rs",
+ "version": "4.3.0",
+ "source": None,
+ "license": "Apache-2.0",
+ "targets": [{"kind": ["cdylib"]}],
+ "manifest_path": os.path.join(self.root, "crates",
"pyspark-rs", "Cargo.toml"),
+ },
+ {
+ "id": "mitlib",
+ "name": "mitlib",
+ "version": "1.0.0",
+ "source": registry,
+ "license": "MIT",
+ "targets": [{"kind": ["lib"]}],
+ "manifest_path": self._crate("mitlib", "1.0.0", {"LICENSE":
MIT_TEXT}),
+ },
+ {
+ "id": "duallib",
+ "name": "duallib",
+ "version": "2.0.0",
+ "source": registry,
+ "license": "MIT OR Apache-2.0",
+ "targets": [{"kind": ["lib"]}],
+ "manifest_path": self._crate(
+ "duallib",
+ "2.0.0",
+ {"LICENSE-MIT": MIT_TEXT, "LICENSE-APACHE": APACHE_HEAD,
"NOTICE": DUAL_NOTICE},
+ ),
+ },
+ {
+ "id": "mymacro",
+ "name": "mymacro",
+ "version": "0.1.0",
+ "source": registry,
+ "license": "MIT",
+ "targets": [{"kind": ["proc-macro"]}],
+ "manifest_path": self._crate("mymacro", "0.1.0", {"LICENSE":
MIT_TEXT}),
+ },
+ {
+ "id": "devlib",
+ "name": "devlib",
+ "version": "0.1.0",
+ "source": registry,
+ "license": "BSD-3-Clause",
+ "targets": [{"kind": ["lib"]}],
+ "manifest_path": self._crate("devlib", "0.1.0", {"LICENSE":
"BSD"}),
+ },
+ ]
+
+ def dep(pkg_id, kind=None):
+ return {"pkg": pkg_id, "dep_kinds": [{"kind": kind, "target":
None}]}
+
+ nodes = [
+ {
+ "id": "pyspark-rs",
+ "deps": [dep("mitlib"), dep("duallib"), dep("mymacro"),
dep("devlib", "dev")],
+ },
+ {"id": "mitlib", "deps": []},
+ {"id": "duallib", "deps": []},
+ {"id": "mymacro", "deps": []},
+ {"id": "devlib", "deps": []},
+ ]
+ return {"packages": packages, "resolve": {"nodes": nodes}}
+
+ def _outputs(self):
+ return gen.build_outputs(self._metadata(), ROOT_LICENSE, ROOT_NOTICE)
+
+ def test_only_linked_non_proc_macro_crates_are_listed(self):
+ out = self._outputs()
+ license_text = out["LICENSE-binary"]
+ self.assertIn("mitlib 1.0.0\n", license_text)
+ self.assertIn("duallib 2.0.0 (MIT OR Apache-2.0)\n", license_text)
+ self.assertNotIn("mymacro", license_text)
+ self.assertNotIn("devlib", license_text)
+
+ def test_non_apache_components_carry_their_license_texts(self):
+ license_text = self._outputs()["LICENSE-binary"]
+ self.assertIn(
+ "The license of mitlib 1.0.0 (MIT), from LICENSE:\n\n" + MIT_TEXT,
license_text
+ )
+ # The dual crate is used under Apache-2.0, so its texts are not
bundled.
+ self.assertNotIn("duallib 2.0.0 (MIT OR Apache-2.0), from",
license_text)
+ self.assertNotIn("mymacro", license_text)
+
+ def test_notice_is_bundled_for_apache_components_only(self):
+ notice = self._outputs()["NOTICE-binary"]
+ self.assertTrue(notice.startswith(ROOT_NOTICE))
+ self.assertIn("=== NOTICE FOR duallib 2.0.0 ===", notice)
+ self.assertIn(DUAL_NOTICE, notice)
+ self.assertNotIn("mitlib", notice)
+
+ def test_check_passes_on_written_files_and_fails_after_an_edit(self):
+ outputs = self._outputs()
+ gen.write(self.root, outputs)
+ self.assertEqual(gen.check(self.root, outputs), [])
+
+ # Dropping a component from the summary makes LICENSE-binary stale.
+ license_path = os.path.join(self.root, "LICENSE-binary")
+ text = _read(license_path)
+ with open(license_path, "w", encoding="utf-8") as f:
+ f.write(text.replace("mitlib 1.0.0\n", ""))
+ self.assertEqual(gen.check(self.root, outputs), ["LICENSE-binary"])
+
+ # Dropping a component's license text makes it stale too.
+ gen.write(self.root, outputs)
+ with open(license_path, "w", encoding="utf-8") as f:
+ f.write(_read(license_path).replace(MIT_TEXT, ""))
+ self.assertEqual(gen.check(self.root, outputs), ["LICENSE-binary"])
+
+ # A missing NOTICE-binary is stale as well.
+ gen.write(self.root, outputs)
+ os.remove(os.path.join(self.root, "NOTICE-binary"))
+ self.assertEqual(gen.check(self.root, outputs), ["NOTICE-binary"])
+
+
+if __name__ == "__main__":
+ unittest.main()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]