#1125·obscura

cargo deny check licenses fails: jpeg-encoder includes the IJG license

Author: ice-zeusCreated Sep 30, 2026Updated Sep 30, 2026

cargo deny check licenses fails on main because jpeg-encoder includes the IJG license, which is not in the deny.toml allow-list.

Environment: a005d16, cargo-deny 0.20.2, cargo deny --all-features --config deny.toml check advisories bans licenses sources (the arguments used by the CI policy job).

error[rejected]: failed to satisfy license requirements
   ┌─ jpeg-encoder-0.7.1/Cargo.toml:33:36
33 │ license = "(MIT OR Apache-2.0) AND IJG"
   │                                    rejected: license is not explicitly allowed

Result: advisories ok, bans ok, licenses FAILED, sources ok.

jpeg-encoder 0.7.1 is used by obscura-cdp with the render feature for JPEG screenshots and screencast frames. Its forward DCT (src/fdct.rs) is derived from the Independent JPEG Group's libjpeg via libjpeg-turbo, and the crate ships LICENSE-IJG.

The policy job only runs this check when a pull request changes dependency files, so current pull requests are not affected. The next dependency update will fail it regardless of what it changes.

Possible resolutions:

  1. Allow IJG for jpeg-encoder only, with a [[licenses.exceptions]] entry, so no other crate can introduce it unnoticed.
  2. Add IJG to the general allow-list.

The IJG license asks that documentation accompanying executable-only distributions state that the software is based in part on the work of the Independent JPEG Group. Release archives may need that attribution whichever option is chosen.

A pull request with option 1 follows.