ComfyUI-Model-Manager-Neo — native core (`mm_core`) third-party attributions
============================================================================

The native core (this `native/` workspace) is part of ComfyUI-Model-Manager-Neo,
which is distributed under the GNU General Public License v3.0 ONLY
(GPL-3.0-only) — see ../LICENSE. It statically links the Rust crates declared in
`Cargo.toml` / `crates/*/Cargo.toml`. Permissive licences (MIT, Apache-2.0,
BSD-2-Clause) are compatible with GPL-3.0 and need no further notice beyond
their own terms; the ONE copyleft component that is not GPL-compatible-by-
default is called out explicitly below.

---------------------------------------------------------------------------
zenwebp — pure-Rust WebP codec (preview WebP pipeline, Phase 7 / T7)
---------------------------------------------------------------------------
Used for the preview WebP pipeline: `znn-codec`'s `webp` module decodes WebP
(still + animated) and encodes WebP (still + animated) through zenwebp, and
`mm-core` exposes it as `webp_decode` / `webp_decode_animation` /
`webp_encode` / `webp_encode_animation`.

  Copyright (C) 2025 Imazen LLC
  Licence: AGPL-3.0-only OR LicenseRef-Imazen-Commercial (dual-licensed)
  Upstream:  https://github.com/imazen/zenwebp
  Version:   0.4.4 (crates.io max_stable_version; 0.4.5 is yanked)

This extension is GPL-3.0-only and incorporates zenwebp under the **AGPL-3.0**
terms (the Imazen commercial licence is for proprietary use and does not apply).
Legal basis: AGPLv3 §13 explicitly permits combining an AGPL work with a GPLv3
work into a single combined work (the AGPL-covered part remains under the AGPL).
ComfyUI is a LOCAL desktop application, not a network service, so the AGPL's
network-interaction clause (§13) is effectively inoperative for this use; the
distribution copyleft obligation (making the corresponding source available) is
satisfied by this public source repository. zenwebp itself is `forbid(unsafe_code)`
and carries an upstream fuzz suite; Neo additionally fuzzes the decode path
(`fuzz/fuzz_targets/webp_decode.rs`, the L3 `webp_decode` target).

---------------------------------------------------------------------------
ZipNN format + FiniteStateEntropy (huff0) — pure-Rust port in `znn-codec`
---------------------------------------------------------------------------
`znn-codec` is a clean-room Rust port of the ZipNN tensor-aware compression
format and its FSE-derived huff0 coder.

  ZipNN:                     MIT — Copyright (c) the ZipNN authors.
                             Reference: Hershcovitch et al., "ZipNN: Lossless
                             Compression for AI Models" (arXiv:2411.05239).
  FiniteStateEntropy (huf0): BSD-2-Clause OR GPL-2.0 — Yann Collet. Neo selects
                             the BSD-2-Clause path (GPL-2.0-only is incompatible
                             with GPL-3.0-only).

Phase 8 removed the transition-era `third_party/` tree (the vendored ZipNN
0.5.4 Python package, its C sources and the prebuilt C core); the licence
texts it carried are inherited verbatim below, as the NOTICE always promised.
Per-file copyright / SPDX headers for the FSE-derived code live in
`crates/znn-codec/src/huf/`.

--- BEGIN third_party/LICENSE-zipnn.txt (MIT) ---------------------------------
MIT License

Copyright (c) 2020-2022 International Business Machines
and the Drain3 project 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.
--- END third_party/LICENSE-zipnn.txt -----------------------------------------

--- BEGIN third_party/LICENSE-FiniteStateEntropy.txt (BSD-2-Clause) ------------
Copyright (c) 2013, Yann Collet
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.

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.
--- END third_party/LICENSE-FiniteStateEntropy.txt -----------------------------

---------------------------------------------------------------------------
Everything else
---------------------------------------------------------------------------
All other crates in the dependency tree (pyo3, rayon, sha2, blake3, jiter,
memmap2, notify, serde, thiserror, zenwebp's own pure-Rust deps, …) are MIT
and/or Apache-2.0 (Apache-2.0 is GPL-3-compatible) and are used under those
terms; see each crate's licence metadata on crates.io.
