Commit Graph
3 Commits
Author SHA1 Message Date
jakob e81ef6b351 workspace: scaffold Cargo workspace with rpn-core and rpn-cli
First code in the repo. Workspace root is Application/ per readme;
members are src/core (crate rpn-core) and src/cli (binary rpnc).
Crate names are prefixed to avoid clashing with the std `core`
crate; directory names follow the readme layout.

Dependencies (versions pinned in Cargo.lock):
- core: sqlx (mysql, runtime-tokio, chrono, rust_decimal), chrono,
  csv, thiserror, serde/serde_json, tracing, plus sha2 (SHA-256
  file checksums required by schema.sql), rust_decimal (exact
  DECIMAL(10,2) money, forced by the "money is DECIMAL
  everywhere" decision), tokio and tempfile as dev deps.
- cli: clap (derive), tokio, tracing-subscriber (env-filter),
  anyhow, serde/serde_json, chrono, csv.

The extra crates beyond the readme stack (sha2, rust_decimal,
tracing-subscriber, tempfile-dev) are direct consequences of
already-committed decisions; flag for maintainer review.

No feature logic yet: rpnc is an empty shell, the domain modules
land in the TDD slices that follow.
2026-09-08 17:56:45 +02:00
jakob 2a0bba5be7 Add web, state, and backup sections to config template
- [web]: port and public fqdn for the daemon (Caddy proxies from a
  separate jail); port defaults to 8080
- [state]: daemon pidfile and logs directory, default ~/.config/rpn
- [backup]: timestamped dumps for rpnc db backup, default
  ~/.config/rpn/backups; rpnc db restore looks here by default
- cli.md: document the optional positional path and the directory
  defaults for db backup/restore
2026-09-02 11:37:04 +02:00
jakob 77354d4ba8 Add config.template.toml 2026-08-25 13:11:24 +02:00