Extract cost spec information into separate crate

korrat
Mar 19, 2024, 4:35 PM
YR6ZR5KOJJJOTBU25RNH27MVYGG3CXBHQ2544HDM2SKBSHRDKXDAC

Dependencies

  • [2] 7URE4HPL Add an importer for DKB account statements
  • [3] 576M5IPA Add type for raw price specs
  • [4] RI7HQBYA Add generator and parser for ISO20022 messages
  • [5] QRIJE4AQ add a simple pretty printer for beancount directives
  • [6] 5PYSO4HI
  • [7] W3MWSSJ7 Add a templating engine for accounts
  • [8] YDK6X6PP add a library of important types for beancount
  • [9] KB7Y4PJI Implement importers for Amazon accounts
  • [10] QNGOXZL4 Add a basic framework
  • [11] D6UTHZA4 add a simple writer for saving a set of directives to a tree of files
  • [12] 2JBFREZG enable additional warnings
  • [13] I2P2FTLE add basic parser for german decimals
  • [14] SEEWF7KX Implement metadata on transactions
  • [15] XWHISGCP Extract Amount into separate crate
  • [16] SMFZEBXD Use LLVM lld instead of MSVC link
  • [17] WS3UUOV3 Extract commodity type into separate crate
  • [18] 4WYI5U7Y Upgrade dependencies
  • [19] NG5QXPZH Extract Account into separate crate
  • [20] R524JUUE Implement metadata & price directives
  • [21] PCHAKXNM Add an importer for Fidor account statements
  • [22] HP7KRXCE Add REUSE-compliant licensing information
  • [23] KWZJZO3C Set up a basic flake for Rust workspace
  • [24] 6MR76MLL Replace build script with cargo-px

Change contents

  • edit in common/beancount-types/src/lib.rs at line 11
    [4.1792]
    [3.424]
    pub use beancount_cost::CostBasis;
    pub use beancount_cost::CostSpec;
  • edit in common/beancount-types/src/lib.rs at line 17
    [4.4193][4.4193:4225](),[4.4225][4.16144:16175]()
    pub use crate::cost::CostBasis;
    pub use crate::cost::CostSpec;
  • edit in common/beancount-types/src/lib.rs at line 39
    [4.5968][4.5968:5978]()
    mod cost;
  • edit in common/beancount-types/Cargo.toml at line 30
    [3.629]
    [3.629]
    beancount-cost.path = "../../beancount/cost"
  • file addition: cost (d--r------)
    [4.1]
  • file addition: src (d--r------)
    [0.133]
  • file move: cost.rs (---r------)lib.rs (---r------)
    [0.150]
    [4.7580]
  • edit in beancount/cost/src/lib.rs at line 6
    [4.16178]
    [4.16178]
    use beancount_amount::Amount;
  • edit in beancount/cost/src/lib.rs at line 10
    [4.4768][4.7652:7653](),[4.16257][4.7652:7653](),[4.7652][4.7652:7653](),[4.7653][4.1874:1893]()
    use crate::Amount;
  • file addition: Cargo.toml (----------)
    [0.133]
    [package]
    name = "beancount-cost"
    authors.workspace = true
    edition.workspace = true
    publish.workspace = true
    rust-version.workspace = true
    version.workspace = true
    [dependencies]
    # Inherited dependencies
    delegate.workspace = true
    rust_decimal.workspace = true
    time.workspace = true
    # Workspace dependencies
    beancount-amount.path = "../../beancount/amount"
    beancount-commodity.path = "../commodity"
  • file move: Cargo.toml (---r------)Cargo.toml (----------)
    [4.1]
    [4.9831]
  • replacement in Cargo.toml at line 2
    [4.9844][4.5344:5356]()
    members = [
    [4.9844]
    [4.5356]
    members = [ "beancount/cost",
  • edit in Cargo.lock at line 237
    [4.21210]
    [2.17748]
    name = "beancount-cost"
    version = "0.0.0-dev.0"
    dependencies = [
    "beancount-amount",
    "beancount-commodity",
    "delegate",
    "rust_decimal",
    "time 0.3.34",
    ]
    [[package]]
  • edit in Cargo.lock at line 400
    [4.2564]
    [3.1965]
    "beancount-cost",