Commit graph

2 commits

Author SHA1 Message Date
Marcel Enguehard
85b0836d6e Add reference amortisation generator for known-answer tests
Computes the mensualité, échéancier, coût total and TAEG of a French
fixed-instalment loan in Decimal arithmetic, and emits the four anonymised
sample offers as either JSON or a Rust fixtures module.

Conventions (taux mensuel proportionnel, arrondi ROUND_HALF_UP au centime,
dernière échéance ajustée pour solder le CRD) are verified against a real
amortisation table via the `verify` subcommand, and cross-checked against the
ANIL simulator on 2026-08-03.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-18 18:07:23 +02:00
Marcel Enguehard
e5400c8992 Set up cargo workspace backbone
Two-crate workspace: immo-core for pure financial logic (wasm-compatible,
no async/IO deps) and immo-web for HTTP and rendering. Both crates are
still cargo-new skeletons; no domain code yet.

Pins the toolchain to 1.97 with rustfmt, clippy and the
wasm32-unknown-unknown target so the core crate's wasm constraint is
checkable locally. Cargo.lock is committed since the workspace ships a
binary.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-29 20:30:55 +02:00