- Rust 89.6%
- Nix 9.9%
- Just 0.5%
|
|
||
|---|---|---|
| .github | ||
| crates | ||
| docs | ||
| migrations | ||
| nix | ||
| .env.example | ||
| .gitignore | ||
| AGENTS.md | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CODE_STYLE.md | ||
| compose.yaml | ||
| deny.toml | ||
| DEVELOPMENT.md | ||
| flake.lock | ||
| flake.nix | ||
| justfile | ||
| OPERATIONS.md | ||
| PLAN.md | ||
| README.md | ||
| rust-toolchain.toml | ||
| rustfmt.toml | ||
| SECURITY.md | ||
npubcash-rust
A Rust implementation of the npub.cash v2 protocol for the pinned
cdk-npubcash client. Cashu operations are delegated to CDK and Nostr
operations to the Rust Nostr crates.
The first-release implementation targets CDK v0.18.0-rc.0. The compatibility
contract and implementation decisions are in
docs/contract/v2.md and
docs/adr/0001-upstream-pins-and-operating-policy.md.
Development
nix develop
just quick-check
PostgreSQL is the sole application database. Start a local server, create a
database, and export DATABASE_URL before running integration tests.
The flake provides an explicit runnable app:
nix run .# -- --version
Running the service requires PostgreSQL, applied migrations, runtime secrets,
a NUT-04/NUT-20-compatible mint, and at least one reachable Nostr relay. See
docs/nixos-module.md for the recommended NixOS
deployment, including automatic PostgreSQL provisioning and migrations.
See DEVELOPMENT.md for contributor workflows and
OPERATIONS.md for configuration, secrets, backup,
monitoring, upgrades, and rollback.