should-i-rent/crates/immo-core/Cargo.toml
Marcel Enguehard 91f96e7b57 Add LoanOffer with validating constructor
LoanOffer::new is the only way in: fields are private and the constructor
rejects a negative rate, a zero duration, and a non-positive capital. A zero
rate is accepted on purpose — the PTZ (prêt à taux zéro) is a real French
instrument.

Add thiserror for the typed error, as required for immo-core. Rate and
duration take no upper bound for now.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-30 15:09:49 +02:00

12 lines
217 B
TOML

[package]
name = "immo-core"
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
[dependencies]
rust_decimal = "1.42.1"
thiserror = "2.0.19"
[lints.clippy]
inconsistent_digit_grouping = "allow"