Replace build script with cargo-px
Dependencies
- [2]
KBSTC23NClean up testing using new builder methods on types - [3]
2ZQIXNEIFix build script after dependency update - [4]
4W4CDACXUpgrade dependencies - [5]
ND7GASJ4track current column position when writing - [6]
M7VINXOFuse fixed_decimal for decimal formatting - [7]
Q54Z5TPAreduce amount of generated data - [8]
L7SULPX7only rerun build script if it changes - [9]
UESS5YZEmigrate dependencies into workspace manifest - [10]
2Z4EGCWQUpdate dependencies - [11]
SFTEXCM4Update dependencies - [12]
2JBFREZGenable additional warnings - [13]
ONRIF4V7add basic snapshot test for pretty printer - [14]
MG46NYACenable deserialization of configuration for common utilities - [15]
5S4MZHL5pretty print decimals using icu - [16]
R7S2CWF7Add type for account segments - [17]
QRIJE4AQadd a simple pretty printer for beancount directives - [18]
24CCPM5OUpdate dependencies - [19]
NSWL54NMallow deriving pretty printing config from a set of directives - [*]
5PYSO4HI - [*]
I2P2FTLEadd basic parser for german decimals
Change contents
- file addition: generators[21.1]
- file addition: src[0.22]
- file addition: bin[0.39]
- file addition: icu-data.rs[0.56]
use std::error::Error;use icu_datagen::BakedOptions;use icu_datagen::CldrLocaleSubset;use icu_datagen::Out;use icu_datagen::SourceData;use icu_decimal::provider::DecimalSymbolsV1Marker;use icu_locid::langid;use icu_provider::marker::KeyedDataMarker as _;fn main() -> Result<(), Box<dyn Error>> {let source_data = SourceData::default().with_cldr_for_tag(SourceData::LATEST_TESTED_CLDR_TAG, CldrLocaleSubset::Modern)?.with_icuexport_for_tag(SourceData::LATEST_TESTED_ICUEXPORT_TAG)?;let mod_directory = {let mut package_path = cargo_px_env::generated_pkg_manifest_path()?;package_path.pop();package_path.push("src");package_path.push("icu_data");package_path};let outputs = vec![{let mut options = BakedOptions::default();options.pretty = true;options.use_separate_crates = true;options.overwrite = true;Out::Baked {mod_directory,options,}}];icu_datagen::datagen(Some(&[langid!("en")]),&[DecimalSymbolsV1Marker::KEY],&source_data,outputs,)?;Ok(())} - file addition: Cargo.toml[0.22]
[package]name = "beancount-importers-generators"publish = falseedition.workspace = truerust-version.workspace = trueversion.workspace = true[dependencies]# inherited dependenciescamino.workspace = truecargo_px_env.workspace = trueicu_datagen.workspace = trueicu_decimal.workspace = trueicu_locid.workspace = trueicu_provider.workspace = trueicu_testdata.workspace = true - file deletion: build.rs
//! Build scriptuse icu_datagen::BakedOptions;use std::error::Error;use icu_datagen::CldrLocaleSubset;use icu_datagen::Out;use icu_datagen::SourceData;use icu_decimal::provider::DecimalSymbolsV1Marker;use icu_locid::langid;use icu_provider::marker::KeyedDataMarker as _;use std::path::PathBuf;// Prevent rerunning unless build script changesprintln!("cargo:rerun-if-changed=build.rs");let source_data = SourceData::default()icu_datagen::datagen(Some(&[langid!("en")]),&[DecimalSymbolsV1Marker::KEY],&source_data,}outputs,)?;Ok(()).with_cldr_for_tag(SourceData::LATEST_TESTED_CLDR_TAG, CldrLocaleSubset::Modern)?.with_icuexport_for_tag(SourceData::LATEST_TESTED_ICUEXPORT_TAG)?;let outputs = vec![{let mut options = BakedOptions::default();options.pretty = true;options.use_separate_crates = true;options.overwrite = true;Out::Baked {mod_directory: PathBuf::from("src/icu_data/"),options,}}];fn main() -> Result<(), Box<dyn Error>> { - replacement in common/beancount-pretty-printer/Cargo.toml at line 4
edition.workspace = truepublish.workspace = trueedition.workspace = truepublish.workspace = true - replacement in common/beancount-pretty-printer/Cargo.toml at line 7
version.workspace = trueversion.workspace = true - replacement in common/beancount-pretty-printer/Cargo.toml at line 14[5.1011]→[5.1011:1033](∅→∅),[5.1033]→[5.744:775](∅→∅),[5.775]→[5.1602:1740](∅→∅),[5.1740]→[5.7610:7633](∅→∅),[5.775]→[5.1033:1063](∅→∅),[5.1740]→[5.1033:1063](∅→∅),[5.7633]→[5.1033:1063](∅→∅),[5.1033]→[5.1033:1063](∅→∅)
bstr.workspace = truefixed_decimal.workspace = trueicu_decimal.workspace = trueicu_locid.workspace = trueicu_provider.workspace = truelitemap.workspace = trueonce_cell.workspace = truerayon.workspace = truerust_decimal.workspace = truebstr.workspace = truefixed_decimal.workspace = trueicu_decimal.workspace = trueicu_locid.workspace = trueicu_provider.workspace = truelitemap.workspace = trueonce_cell.workspace = truerayon.workspace = truerust_decimal.workspace = trueserde.workspace = true - replacement in common/beancount-pretty-printer/Cargo.toml at line 25[5.7672]→[5.1985:2008](∅→∅),[5.2008]→[5.1741:1766](∅→∅),[5.7672]→[5.1741:1766](∅→∅),[5.1063]→[5.1741:1766](∅→∅)
serde.workspace = truezerovec.workspace = truezerovec.workspace = true - replacement in common/beancount-pretty-printer/Cargo.toml at line 29
insta.workspace = trueinsta.workspace = true - replacement in common/beancount-pretty-printer/Cargo.toml at line 31[5.1911]→[2.733:754](∅→∅),[2.754]→[5.2264:2286](∅→∅),[5.1911]→[5.2264:2286](∅→∅),[5.2264]→[5.2264:2286](∅→∅)
tap.workspace = truetime.workspace = truetap.workspace = truetime.workspace = true - replacement in common/beancount-pretty-printer/Cargo.toml at line 34
[build-dependencies]# Inherited dependenciesicu_datagen.workspace = trueicu_decimal.workspace = trueicu_locid.workspace = trueicu_provider.workspace = true[5.875][package.metadata.px.generate]# The generator is a binary in the current workspace.# It's the only generator type we support at the moment.generator_type = "cargo_workspace_binary"# The name of the binary.generator_name = "icu-data" - edit in Cargo.toml at line 7
"generators", - replacement in Cargo.toml at line 12[5.2350]→[5.1007:1026](∅→∅),[5.24320]→[5.24320:24365](∅→∅),[5.24365]→[5.1057:1078](∅→∅),[5.1057]→[5.1057:1078](∅→∅),[5.1078]→[5.24366:24416](∅→∅),[5.24416]→[4.65:89](∅→∅),[4.89]→[5.24440:24460](∅→∅),[5.24440]→[5.24440:24460](∅→∅),[5.24460]→[4.90:200](∅→∅),[4.200]→[5.24570:24607](∅→∅),[5.24570]→[5.24570:24607](∅→∅),[5.20]→[5.1142:1163](∅→∅),[5.11910]→[5.1142:1163](∅→∅),[5.24607]→[5.1142:1163](∅→∅),[5.1142]→[5.1142:1163](∅→∅),[5.1163]→[5.24608:24646](∅→∅),[5.24646]→[4.201:219](∅→∅),[4.219]→[5.11911:11926](∅→∅),[5.24664]→[5.11911:11926](∅→∅),[5.2018]→[5.11911:11926](∅→∅),[5.11926]→[4.220:237](∅→∅),[4.237]→[5.24682:24703](∅→∅),[5.24682]→[5.24682:24703](∅→∅),[5.64]→[5.11944:11972](∅→∅),[5.17789]→[5.11944:11972](∅→∅),[5.24703]→[5.11944:11972](∅→∅),[5.2039]→[5.11944:11972](∅→∅),[5.11972]→[5.24704:24739](∅→∅),[5.24739]→[4.238:254](∅→∅),[4.254]→[5.1221:1235](∅→∅),[5.17822]→[5.1221:1235](∅→∅),[5.24755]→[5.1221:1235](∅→∅),[5.1221]→[5.1221:1235](∅→∅),[5.1235]→[5.24756:24811](∅→∅),[5.24811]→[4.255:277](∅→∅),[4.277]→[5.87:103](∅→∅),[5.24833]→[5.87:103](∅→∅),[5.87]→[5.87:103](∅→∅),[5.103]→[5.1252:1280](∅→∅),[5.11989]→[5.1252:1280](∅→∅),[5.1252]→[5.1252:1280](∅→∅),[5.1280]→[5.17879:17893](∅→∅),[5.17893]→[4.278:298](∅→∅),[4.298]→[5.11990:12009](∅→∅),[5.24854]→[5.11990:12009](∅→∅),[5.1300]→[5.11990:12009](∅→∅),[5.12009]→[5.1319:1365](∅→∅),[5.1319]→[5.1319:1365](∅→∅),[5.1365]→[4.299:317](∅→∅)
arrayvec = "0.7.2"bstr = "1.4.0"clap-verbosity-flag = "2.0.1"color-eyre = "0.6.2"csv = "1.2.1"delegate = "0.9.0"extend = "1.2.0"fixed_decimal = "0.5.3"hard-xml = "1.21.0"icu_datagen = "1.2.5"icu_decimal = "1.2.0"icu_locid = "1.2.0"icu_provider = "1.2.0"icu_testdata = "1.2.0"insta = "1.29.0"inventory = "0.3.5"itertools = "0.10.5"lazy-regex = "2.5.0"linkme = "0.3.9"litemap = "0.7.0"momo = "0.2.2"miette = "5.8.0"once_cell = "1.17.1"pretty_assertions = "1.3.0"proptest = "1.1.0"rayon = "1.7.0"regex = "1.8.1"ron = "0.8.0"rust_decimal = "1.29.1"rust_decimal_macros = "1.29.1"serde_json = "1.0.96"snafu = "0.7.4"static_assertions = "1.1.0"tap = "1.0.1"test-case = "3.1.0"tracing = "0.1.37"tracing-error = "0.2.0"tracing-log = "0.1.3"typetag = "0.2.8"arrayvec = "0.7.2"beef = "0.5.2"bstr = "1.4.0"cargo_px_env = "0.1.0"clap-verbosity-flag = "2.0.1"color-eyre = "0.6.2"csv = "1.2.1"delegate = "0.9.0"extend = "1.2.0"fixed_decimal = "0.5.3"hard-xml = "1.21.0"icu_datagen = "1.2.5"icu_decimal = "1.2.0"icu_locid = "1.2.0"icu_provider = "1.2.0"icu_testdata = "1.2.0"insta = "1.29.0"inventory = "0.3.5"itertools = "0.10.5"lazy-regex = "2.5.0"linkme = "0.3.9"litemap = "0.7.0"miette = "5.8.0"momo = "0.2.2"once_cell = "1.17.1"pretty_assertions = "1.3.0"proptest = "1.1.0"rayon = "1.7.0"regex = "1.8.1"ron = "0.8.0"rust_decimal = "1.29.1"rust_decimal_macros = "1.29.1"serde_json = "1.0.96"snafu = "0.7.4"static_assertions = "1.1.0"tap = "1.0.1"test-case = "3.1.0"tracing = "0.1.37"tracing-error = "0.2.0"tracing-log = "0.1.3"typetag = "0.2.8" - replacement in Cargo.toml at line 54
zerovec = "0.9.4"zerovec = "0.9.4" - replacement in Cargo.toml at line 58
version = "1.1.4"version = "1.1.4" - replacement in Cargo.toml at line 62
version = "4.2.5"version = "4.2.5" - replacement in Cargo.toml at line 66
version = "5.4.0"version = "5.4.0" - replacement in Cargo.toml at line 70
version = "1.0.160"version = "1.0.160" - replacement in Cargo.toml at line 74
version = "0.3.20"version = "0.3.20" - replacement in Cargo.toml at line 78
version = "1.0.2"version = "1.0.2" - replacement in Cargo.toml at line 82
version = "0.3.17"version = "0.3.17" - replacement in Cargo.toml at line 86
version = "0.8.6"version = "0.8.6" - replacement in Cargo.toml at line 89[5.1770]→[5.12140:12190](∅→∅),[5.12190]→[5.1770:1787](∅→∅),[5.1770]→[5.1770:1787](∅→∅),[5.1787]→[5.23443:23459](∅→∅)
authors = ["Markus Haug <korrat@protonmail.com>"]edition = "2021"publish = falseauthors = ["Markus Haug <korrat@protonmail.com>"]edition = "2021"publish = false - replacement in Cargo.toml at line 93
version = "0.0.0-dev.0"version = "0.0.0-dev.0" - replacement in Cargo.toml at line 97
incremental = falseinherits = "release"lto = "thin"[5.23501]incremental = falseinherits = "release"lto = "thin"