This is an old revision of the document!
Split-Bill
This is a command-line expense-sharing utility written in Rust. It takes NAME=AMOUNT pairs and produces a very simple output about how much each person should return or get back for the expenses to be settled.
Repository: split-bill
Ideas
Let the application store expenses between runs. Running it several times would add expenses to a database and refresh the report.
Use a reasonable type to represent amounts — f32 will break calculations sooner or later.
Extract expense calculation code to a Rust library and then use it in the CLI tool, to be able to then write other applications (
GUI maybe?).