8.0 KiB
8.0 KiB
Dependencies and their licences
Every crate Liber's core uses, with its licence, recorded before it is used. The rule (from Pictor): code only
under MIT, Apache-2.0, BSD, Zlib or MPL-2.0, or an OS codec. Anything else: the feature waits.
Data and model licences (dictionaries, voices, translation models) are not code: they are listed in the app's
docs/DEPENDENCIES.md and decided by Mark before use. Day 1 uses none.
The allowed set, as checked by scripts/deps.mjs
| Licence (SPDX) | Why it is allowed |
|---|---|
| MIT, MIT-0 | named in the rule |
| Apache-2.0, Apache-2.0 WITH LLVM-exception | named in the rule |
| BSD-2-Clause, BSD-3-Clause, 0BSD | named in the rule ("BSD") |
| Zlib | named in the rule |
| MPL-2.0 | named in the rule |
| ISC | interpretation, as in Pictor (Mark to confirm): BSD-style |
| Unicode-3.0, Unicode-DFS-2016 | interpretation, as in Pictor (Mark to confirm): MIT-style licence of Unicode's data tables (unicode-ident, unicode-normalization) |
| BSL-1.0, CC0-1.0 | interpretation, as in Pictor (Mark to confirm) |
| Unlicense | only inside an OR with MIT (csv: "Unlicense/MIT"), so MIT is the branch that passes; Unlicense alone is not in the set |
An SPDX expression with OR passes when one branch passes; AND needs every part to pass.
Direct dependencies
| Crate | Version | Licence | Used by | For |
|---|---|---|---|---|
| quick-xml | 0.42 | MIT | liber-format | OPF, NCX, nav, container.xml, FB2 and well-formed XHTML; never resolves external entities |
| html5ever | 0.40 | MIT OR Apache-2.0 | liber-format | tag-soup HTML: MOBI text, and XHTML chapters that are not well-formed |
| markup5ever_rcdom | 0.40 | MIT OR Apache-2.0 | liber-format | the tree html5ever builds into (walked once, depth-capped, then dropped) |
| encoding_rs | 0.8 | (Apache-2.0 OR MIT) AND BSD-3-Clause | liber-format | Windows-1250/1251/1252, ISO-8859-2, UTF-16 decoding |
| chardetng | 1 | Apache-2.0 OR MIT | liber-format | encoding detection for TXT |
| miniz_oxide | 0.8 | MIT OR Zlib OR Apache-2.0 | liber-format | inflate (with an output cap) and deflate for the zip reader and writer |
| crc32fast | 1 | MIT OR Apache-2.0 | liber-format | zip CRC-32 |
| sha2 | 0.10 | MIT OR Apache-2.0 | liber-format, liber-library | content hashes, fingerprints, ids |
| base64 | 0.22 | MIT OR Apache-2.0 | liber-format | FB2 binary images |
| unicode-normalization | 0.1 | (MIT OR Apache-2.0) AND Unicode-3.0 | liber-format | NFKC for the text fingerprint |
| serde, serde_json | 1 | MIT OR Apache-2.0 | both | the document model to the app, the export format, the event log |
| thiserror | 2 | MIT OR Apache-2.0 | both | error types |
| csv | 1 | Unlicense OR MIT | liber-library | Goodreads and StoryGraph CSV import, CSV export |
| proptest | 1 (dev) | MIT OR Apache-2.0 | tests | random mutations of books, generated histories |
Versions are the ones cargo resolved on 2026-11-17; the table below is generated from Cargo.lock.
Every crate in Cargo.lock
101 crates; 0 outside the allowed set.
| Crate | Version | Licence | Allowed |
|---|---|---|---|
| adler2 | 2.0.1 | 0BSD OR MIT OR Apache-2.0 | yes |
| autocfg | 1.5.1 | Apache-2.0 OR MIT | yes |
| base64 | 0.22.1 | MIT OR Apache-2.0 | yes |
| bit-set | 0.11.1 | Apache-2.0 OR MIT | yes |
| bit-vec | 0.10.2 | Apache-2.0 OR MIT | yes |
| bitflags | 2.13.2 | MIT OR Apache-2.0 | yes |
| block-buffer | 0.10.4 | MIT OR Apache-2.0 | yes |
| borsh | 1.8.1 | MIT OR Apache-2.0 | yes |
| borsh-derive | 1.8.1 | Apache-2.0 | yes |
| bytes | 1.12.1 | MIT | yes |
| cfg_aliases | 0.2.2 | MIT | yes |
| cfg-if | 1.0.5 | MIT OR Apache-2.0 | yes |
| chacha20 | 0.10.2 | MIT OR Apache-2.0 | yes |
| chardetng | 1.0.0 | Apache-2.0 OR MIT | yes |
| core_detect | 1.0.0 | MIT/Apache-2.0 | yes |
| cpufeatures | 0.2.17 | MIT OR Apache-2.0 | yes |
| cpufeatures | 0.3.1 | MIT OR Apache-2.0 | yes |
| crc32fast | 1.5.5 | MIT OR Apache-2.0 | yes |
| crypto-common | 0.1.7 | MIT OR Apache-2.0 | yes |
| csv | 1.4.0 | Unlicense/MIT | yes |
| csv-core | 0.1.13 | Unlicense/MIT | yes |
| digest | 0.10.7 | MIT OR Apache-2.0 | yes |
| encoding_rs | 0.8.44 | (Apache-2.0 OR MIT) AND BSD-3-Clause | yes |
| equivalent | 1.0.3 | Apache-2.0 OR MIT | yes |
| errno | 0.3.15 | MIT OR Apache-2.0 | yes |
| fastrand | 2.5.0 | Apache-2.0 OR MIT | yes |
| fnv | 1.0.7 | Apache-2.0 / MIT | yes |
| generic-array | 0.14.7 | MIT | yes |
| getrandom | 0.4.3 | MIT OR Apache-2.0 | yes |
| hashbrown | 0.17.1 | MIT OR Apache-2.0 | yes |
| html5ever | 0.40.1 | MIT OR Apache-2.0 | yes |
| indexmap | 2.14.2 | Apache-2.0 OR MIT | yes |
| itoa | 1.0.19 | MIT OR Apache-2.0 | yes |
| libc | 0.2.191 | MIT OR Apache-2.0 | yes |
| linux-raw-sys | 0.12.1 | Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT | yes |
| lock_api | 0.4.14 | MIT OR Apache-2.0 | yes |
| log | 0.4.35 | MIT OR Apache-2.0 | yes |
| markup5ever | 0.40.0 | MIT OR Apache-2.0 | yes |
| markup5ever_rcdom | 0.40.1+unofficial | MIT OR Apache-2.0 | yes |
| memchr | 2.8.3 | Unlicense OR MIT | yes |
| miniz_oxide | 0.8.9 | MIT OR Zlib OR Apache-2.0 | yes |
| multiversion_no_op | 1.0.0 | Apache-2.0 OR MIT | yes |
| new_debug_unreachable | 1.0.6 | MIT | yes |
| num-traits | 0.2.19 | MIT OR Apache-2.0 | yes |
| once_cell | 1.21.4 | MIT OR Apache-2.0 | yes |
| parking_lot | 0.12.5 | MIT OR Apache-2.0 | yes |
| parking_lot_core | 0.9.12 | MIT OR Apache-2.0 | yes |
| phf | 0.14.0 | MIT | yes |
| phf_codegen | 0.14.0 | MIT | yes |
| phf_generator | 0.14.0 | MIT | yes |
| phf_shared | 0.14.0 | MIT | yes |
| precomputed-hash | 0.1.1 | MIT | yes |
| proc-macro-crate | 3.5.0 | MIT OR Apache-2.0 | yes |
| proc-macro2 | 1.0.107 | MIT OR Apache-2.0 | yes |
| proptest | 1.12.0 | MIT OR Apache-2.0 | yes |
| quick-error | 1.2.3 | MIT/Apache-2.0 | yes |
| quick-xml | 0.42.0 | MIT | yes |
| quote | 1.0.47 | MIT OR Apache-2.0 | yes |
| r-efi | 6.0.0 | MIT OR Apache-2.0 OR LGPL-2.1-or-later | yes |
| rand | 0.10.4 | MIT OR Apache-2.0 | yes |
| rand_core | 0.10.1 | MIT OR Apache-2.0 | yes |
| rand_xorshift | 0.5.0 | MIT OR Apache-2.0 | yes |
| redox_syscall | 0.5.18 | MIT | yes |
| regex-syntax | 0.8.11 | MIT OR Apache-2.0 | yes |
| rustix | 1.1.6 | Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT | yes |
| rustversion | 1.0.23 | MIT OR Apache-2.0 | yes |
| rusty-fork | 0.3.1 | MIT/Apache-2.0 | yes |
| ryu | 1.0.23 | Apache-2.0 OR BSL-1.0 | yes |
| scopeguard | 1.2.0 | MIT OR Apache-2.0 | yes |
| serde | 1.0.229 | MIT OR Apache-2.0 | yes |
| serde_core | 1.0.229 | MIT OR Apache-2.0 | yes |
| serde_derive | 1.0.229 | MIT OR Apache-2.0 | yes |
| serde_json | 1.0.154 | MIT OR Apache-2.0 | yes |
| sha2 | 0.10.9 | MIT OR Apache-2.0 | yes |
| simdutf8 | 0.1.5 | MIT OR Apache-2.0 | yes |
| siphasher | 1.0.4 | MIT OR Apache-2.0 | yes |
| smallvec | 1.16.5 | MIT OR Apache-2.0 | yes |
| string_cache | 0.11.0 | MIT OR Apache-2.0 | yes |
| string_cache_codegen | 0.11.2 | MIT OR Apache-2.0 | yes |
| syn | 3.0.10 | MIT OR Apache-2.0 | yes |
| tempfile | 3.27.0 | MIT OR Apache-2.0 | yes |
| tendril | 0.5.1 | MIT OR Apache-2.0 | yes |
| thiserror | 2.0.21 | MIT OR Apache-2.0 | yes |
| thiserror-impl | 2.0.21 | MIT OR Apache-2.0 | yes |
| tinyvec | 1.13.3 | Zlib OR Apache-2.0 OR MIT | yes |
| toml_datetime | 1.1.3+spec-1.1.0 | MIT OR Apache-2.0 | yes |
| toml_edit | 0.25.19+spec-1.1.0 | MIT OR Apache-2.0 | yes |
| toml_parser | 1.1.5+spec-1.1.0 | MIT OR Apache-2.0 | yes |
| typenum | 1.20.1 | MIT OR Apache-2.0 | yes |
| unarray | 0.1.4 | MIT OR Apache-2.0 | yes |
| unicode-ident | 1.0.27 | (MIT OR Apache-2.0) AND Unicode-3.0 | yes |
| unicode-normalization | 0.1.26 | (MIT OR Apache-2.0) AND Unicode-3.0 | yes |
| unicode-segmentation | 1.13.3 | MIT OR Apache-2.0 | yes |
| version_check | 0.9.5 | MIT/Apache-2.0 | yes |
| wait-timeout | 0.2.1 | MIT/Apache-2.0 | yes |
| web_atoms | 0.3.0 | MIT OR Apache-2.0 | yes |
| windows-link | 0.2.1 | MIT OR Apache-2.0 | yes |
| windows-sys | 0.61.2 | MIT OR Apache-2.0 | yes |
| winnow | 1.0.5 | MIT | yes |
| xml5ever | 0.40.0 | MIT OR Apache-2.0 | yes |
| zmij | 1.0.23 | MIT | yes |