#billing #invoice #money #tax #service #serialization #free

bill

💸 A minimal library for creating invoices. Feel free to review and correct it.

8 releases

new 0.4.3 Feb 20, 2025
0.4.2 Mar 26, 2023
0.4.1 Oct 18, 2021
0.4.0 Jan 18, 2019
0.1.1 Apr 26, 2017

#49 in Finance

Download history 7/week @ 2024-11-01 3/week @ 2024-11-08 3/week @ 2024-12-06 2/week @ 2024-12-13 192/week @ 2025-01-31 12/week @ 2025-02-07

204 downloads per month
Used in asciii

MIT/Apache

13KB
284 lines

💸 Bill

build Crates.io contributors maintenance

version documentation license

Tiny little billing library.

Example

cargo run --example catalogue
offer:
  0%
*   2x Service         8,0016,000.19%
  *   8x Water           0,614,88*   4x AppleJuice      1,646,56*   4x OrangeJuice    1,867,44*   40x Sandwich        3,40136,00---------------------------------------
       170,88+ 29,43(tax)
   net 200,31...

With serialization

cargo run --example catalogue --features serialization
{"items_by_tax":{
  "0": {
    "items":[
      {"amount":2.0,"product":{"name":"Service","price":8.0,"tax":"0"}}
    ]
  },
  "0.19":{
    "items": [
      {"amount":8.0,"product":{"name":"Water","price":0.61,"tax":"0.19"}},
      {"amount":4.0,"product":{"name":"AppleJuice","price":1.64,"tax":"0.19"}},
      {"amount":4.0,"product":{"name":"OrangeJuice","price":1.86,"tax":"0.19"}},{"amount":40.0,"product":{"name":"Sandwich","price":3.4,"tax":"0.19"}}
    ]
   }
}}

Dependencies

~1–1.9MB
~40K SLoC