Add macos/ios app using rust lib

This commit is contained in:
Piv
2023-02-03 21:29:23 +10:30
parent 1168ca46db
commit 734a19f711
25 changed files with 1265 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
use std::{collections::HashMap, error::Error, io::Write, path::PathBuf};
use clap::{Parser, Subcommand};
use coster_rs::{CsvCost, Unit};
use coster_rs::CsvCost;
use serde::Deserialize;
#[derive(Parser)]
@@ -79,7 +79,7 @@ fn move_money(
coster_rs::move_money(
csv::Reader::from_path(rules)?,
csv::Reader::from_path(lines)?,
csv::Writer::from_path(output.unwrap_or(PathBuf::from("output.csv")))?,
&mut csv::Writer::from_path(output.unwrap_or(PathBuf::from("output.csv")))?,
use_numeric_accounts,
)
}