Nothing checked what the program is built from. `just deny` now does, in the lint part of `just check` and weekly in scheduled.yml (an advisory is published when it is, not when we push), from one file, deny.toml: - advisories: no crate in the lock file with a known vulnerability (RustSec), none yanked; an unmaintained crate is refused when it is one of our own direct dependencies. Two advisories are lived with, each with its reason and date: the quick-xml 0.38 that typst's citation reader brings, which no XML from outside reaches. - licences: the permissive ones, plus MPL-2.0 for one unchanged crate (option-ext) and CDLA-Permissive-2.0 for Mozilla's root certificates. No font licence is allowed, so a crate that carries fonts is refused and every font we ship is a file here beside its licence. A crate offering only a copyleft licence is refused. - sources: crates.io and the bookspec repository, nothing else. - bans: no dependency by wildcard version. The crates are marked `publish = false` (one line in the workspace, inherited by all eleven): they are parts of one program, not libraries for crates.io, and with that cargo-deny accepts their path dependencies on each other. cargo-deny 0.20.2 is a build tool pinned in mise.toml, not a dependency of the program. Shown: `just deny` prints advisories ok, bans ok, licenses ok, sources ok on this tree. Co-Authored-By: Claude <noreply@anthropic.com>
52 lines
1.8 KiB
TOML
52 lines
1.8 KiB
TOML
[package]
|
|
name = "ledger-gui"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
description = "Read-only, live desktop view of wanderbooks books."
|
|
|
|
[[bin]]
|
|
name = "ledger-gui"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
ledger-core = { path = "../ledger-core" }
|
|
ledger-store = { path = "../ledger-store" }
|
|
ledger-config = { path = "../ledger-config" }
|
|
ledger-import = { path = "../ledger-import" }
|
|
ledger-vault = { path = "../ledger-vault" }
|
|
ledger-package = { path = "../ledger-package" }
|
|
# No `default_fonts`, on eframe or on egui: egui's own font set includes
|
|
# Ubuntu Light, under the Ubuntu Font Licence, which Debian and Fedora class
|
|
# as non-free. The viewer names every font it draws with (theme.rs,
|
|
# assets/fonts/README.md), and `just deny` refuses that licence.
|
|
eframe = { version = "0.36", default-features = false, features = ["wgpu", "wayland", "x11", "persistence"] }
|
|
egui = { version = "0.36", default-features = false }
|
|
egui_extras = { version = "0.36", features = ["image", "datepicker", "serde"] }
|
|
egui-phosphor = "0.14"
|
|
# Markdown documents, drawn as text. No image loading (no `load-images`,
|
|
# no `fetch`): a document never makes the viewer read a file or the network.
|
|
egui_commonmark = { version = "0.25", default-features = false, features = ["pulldown_cmark"] }
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "webp"] }
|
|
notify = "8"
|
|
jiff = "0.2"
|
|
chrono = "0.4"
|
|
rust_decimal = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
zeroize = "1"
|
|
# The dock: a terminal emulator over a PTY (ConPTY on Windows), P11b
|
|
alacritty_terminal = "0.26"
|
|
|
|
[dev-dependencies]
|
|
chrono = "0.4"
|
|
egui_kittest = { version = "0.36", features = ["wgpu", "snapshot", "eframe"] }
|
|
proptest = "1"
|
|
tempfile = "3"
|
|
zip = "9.0.1"
|
|
|
|
[lints]
|
|
workspace = true
|