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:
| Crate | Licence | Why it is acceptable |
|---|---|---|
option-ext (via dirs) | MPL-2.0 | File-level copyleft, used unmodified. |
epaint_default_fonts | OFL-1.1, Ubuntu-font-1.0 | Fonts may be bundled; their notices must ship with binary releases (packaging ticket). |
self_cell | Apache-2.0 OR GPL-2.0-only | Used under Apache-2.0. |
r-efi | MIT OR Apache-2.0 OR LGPL-2.1-or-later | Used 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
- Check licence, maintenance activity, transitive dependencies and
unsafeuse. - Add the version to
[workspace.dependencies]in the rootCargo.toml. - Commit
Cargo.lock(anddocs/package-lock.jsonfor documentation dependencies). - Run
cargo deny checkand the full test suite. - 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.