Files
regent/Cargo.toml
raucao 5ff4d5d0f0 Add a nightly .Devel build profile and icon
A `-Dprofile=development` build is a separate application identity: the app
id carries a `.Devel` suffix, and the desktop file, AppStream id, icon,
GSettings schema id/path, GResource bundle name, D-Bus name and data
directories all follow, with a `regent-devel` binary so it installs beside
the stable one instead of replacing it. The Rust side switches `APP_ID` on
a cargo `devel` feature (a feature, not an env var, so the shared cargo
target dir cannot return a binary built for the other profile); the
metadata files become `.in` templates configured from `app_id`.

The nightly uses the banded nightly app icon and libadwaita's striped
`devel` header bar. The dev deploy selects it with
`REGENT_PROFILE=development`; the release `--pkg` build stays stable, and a
nightly install leaves the `nostrconnect://` scheme handler to the stable
build.

Two Meson details this depends on: the GResource prefix is fixed by
`resources.gresource.xml` (not the resource id) and is shared by both
profiles, and `gnome.compile_schemas()` scans the source directory, so the
generated schema is compiled by a `glib-compile-schemas` target instead.
2026-11-28 13:44:44 +04:00

45 lines
1.8 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"] }
# 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"
qrcode = { version = "0.14", features = ["image"] }
image = { version = "0.25", default-features = false, features = ["png"] }
[profile.release]
opt-level = 3
lto = true