Files
regent/Cargo.toml

54 lines
2.2 KiB
TOML

[package]
name = "regent"
version = "0.1.0"
edition = "2024"
rust-version = "1.92"
description = "Nostr remote signer (NIP-46) for GNOME"
license = "Unlicense"
repository = "https://gitea.kosmos.org/raucao/regent"
publish = false
[features]
default = []
# Development/nightly build: switches the application identity to the `.Devel`
# id (app id, GResource bundle name, GSettings id/path, D-Bus name and data dirs
# all follow). Selected by the Meson `development` profile; see meson.options.
devel = []
[dependencies]
gtk = { package = "gtk4", version = "0.11", features = ["v4_24"] }
libadwaita = { version = "0.9", features = ["v1_10"] }
glib = "0.22"
url = "2"
nostr = { version = "0.45", features = ["nip04", "nip44", "nip49", "os-rng"] }
nostr-sdk = { version = "0.45", default-features = false, features = ["rustls-tls-webpki-roots"] }
# App icons are fetched from attacker-controlled URLs, so the HTTP client is
# built per fetch with the validated addresses pinned (see `store::icons`).
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "process", "time", "signal", "net", "sync"] }
# The status-bar indicator, via the KDE/freedesktop StatusNotifierItem spec.
# Tokio (not the `blocking` API): it shares Regent's runtime. zbus opens its own
# session connection and never owns the app's D-Bus name.
ksni = { version = "0.3", default-features = false, features = ["tokio"] }
async-channel = "2"
serde_json = { version = "1", features = ["preserve_order"] }
serde = { version = "1", features = ["derive"] }
zeroize = "1"
base64 = "0.22"
# Constant-time comparison for the pairing secret (L1).
subtle = "2"
# The one `unsafe` in the tree: `CLOCK_BOOTTIME`, so the vault's auto-lock
# timeout counts time spent suspended (`Instant` is `CLOCK_MONOTONIC`, which
# stops during suspend). See `store::keys::boottime`.
libc = "0.2"
# Unique, mode-0600 temp files for the atomic vault write, so concurrent saves
# cannot collide on a fixed `keys.json.tmp` path (M9).
tempfile = "3"
qrcode = { version = "0.14", features = ["image"] }
image = { version = "0.25", default-features = false, features = ["png"] }
[profile.release]
opt-level = 3
lto = true