Files
GoblinPay/Cargo.toml
T
2ro 34a44043f2 grin1 rail: operator opt-in, packaged default OFF (owner ruling)
GP_GRIN1_RAIL now defaults OFF. Unset/off, GoblinPay behaves like the pre-rail
server: no arti/Tor code path runs, no loopback Foreign API listener, no
invoice slates issued, and the pay page shows ONLY 'Pay with Goblin' (no
switcher, no grin1 UI, footer unchanged) — even for an invoice armed while the
rail was on. Enabled, the two-rail switcher renders with the Goblin tab
default-selected; the switcher chrome appears only when BOTH rails are
available (a single rail renders its panel directly).

- config: default flip + docs; env example + README gain the opt-in block.
- checkout: build_info gates all grin1 UI on the flag; tests for both states
  (off => no rail-tab/rail-radio/panel-grin/grin1 strings; on => switcher with
  rail-goblin checked).
- sqlx 0.8 -> 0.9 (workspace): its libsqlite3-sys range (<0.38) unifies with
  arti's rusqlite, resolving the one-links-per-native-lib conflict that
  otherwise forbids sqlx-sqlite + in-process arti in one binary. Feature map:
  runtime-tokio + sqlite (bundled, as before); dynamic COLUMNS queries wrapped
  in sqlx::AssertSqlSafe (compile-time composed strings).
2026-07-04 22:27:10 -04:00

36 lines
979 B
TOML

[workspace]
resolver = "2"
members = [
"crates/gp-wallet",
"crates/gp-goblin-sender",
"crates/gp-nostr",
"crates/gp-core",
"crates/gp-server",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
[workspace.dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# sqlx 0.9: its libsqlite3-sys range (>=0.30.1, <0.38) unifies with the
# rusqlite inside arti's tor-dirmgr (libsqlite3-sys 0.34) — cargo's one-
# `links = "sqlite3"` rule otherwise forbids linking sqlx-sqlite and the grin1
# rail's in-process arti in one binary. 0.9 split the old runtime-tokio-rustls
# feature: TLS is a network-database concern, so SQLite needs none of it.
# `sqlite` = bundled, as before.
sqlx = { version = "0.9", default-features = false, features = [
"runtime-tokio",
"sqlite",
"migrate",
"macros",
] }
tokio = { version = "1", default-features = false }
[profile.release]
opt-level = 2
strip = true