Skip to main content

Dependency management

The project is AGPL-3.0-or-later, and the draft CLA would let the owner also license it commercially. Third-party code must therefore be licensed permissively, or under weak copyleft used unmodified. GPL-only or AGPL-only dependencies would block commercial licensing and are not accepted.

cargo deny check (run in CI, configured in deny.toml) enforces:

  • licences: MIT, Apache-2.0, BSD, ISC, Zlib, BSL-1.0, Unicode-3.0, Unlicense, 0BSD, CDLA-Permissive-2.0, plus the bundled font licences OFL-1.1 and Ubuntu-font-1.0;
  • advisories: RustSec vulnerabilities fail the build; yanked crates are rejected;
  • sources: crates.io only.

Current exceptions and notes:

CrateLicenceWhy it is acceptable
option-ext (via dirs)MPL-2.0File-level copyleft, used unmodified.
epaint_default_fontsOFL-1.1, Ubuntu-font-1.0Fonts may be bundled; their notices must ship with binary releases (packaging ticket).
self_cellApache-2.0 OR GPL-2.0-onlyUsed under Apache-2.0.
r-efiMIT OR Apache-2.0 OR LGPL-2.1-or-laterUsed under MIT/Apache-2.0.

Slint was not chosen as the UI toolkit partly because its open-source licence is GPL-3.0 (ADR 0002).

Adding or updating a dependency​

  1. Check licence, maintenance activity, transitive dependencies and unsafe use.
  2. Add the version to [workspace.dependencies] in the root Cargo.toml.
  3. Commit Cargo.lock (and docs/package-lock.json for documentation dependencies).
  4. Run cargo deny check and the full test suite.
  5. Explain the choice in the pull request; significant ones get an ADR.

Duplicate versions of transitive crates (mostly from the windowing stack) are reported as warnings, not errors.