12 releases

0.2.0 Mar 14, 2025
0.1.0 Feb 20, 2025
0.0.9 Nov 13, 2024
0.0.8 Sep 18, 2024
0.0.2 Nov 14, 2023

#481 in Development tools

Download history 24/week @ 2024-11-30 34/week @ 2024-12-07 14/week @ 2024-12-14 2/week @ 2025-01-04 4/week @ 2025-01-11 4/week @ 2025-01-18 2/week @ 2025-02-01 1/week @ 2025-02-08 158/week @ 2025-02-15 41/week @ 2025-02-22 20/week @ 2025-03-01 98/week @ 2025-03-08 97/week @ 2025-03-15

298 downloads per month
Used in 7 crates (4 directly)

MIT/Apache

175KB
3K SLoC

dsntk | DecisionToolkit

Decision table recognizer

Crates.io docs Code coverage
build Linux build Windows build MacOs
MIT licensed Apache 2.0 licensed Contributor Covenant

Overview

Decision table recognizer used by components of dsntk crate.

Recognizes decision tables defined as Unicode or Markdown text. To be properly recognized, the structure of the decision table must be conformant to DMN™ standard.

Example of decision table defined using only Unicode characters:

  ┌───┬────────────┬───────╥──────────┐
  │ U │  Customer  │ Order ║ Discount │
  ╞═══╪════════════╪═══════╬══════════╡
  │ 1 │ "Business" │  <10  ║   0.10   │
  ├───┼────────────┼───────╫──────────┤
  │ 2 │ "Business" │ >=10  ║   0.15   │
  ├───┼────────────┼───────╫──────────┤
  │ 3 │ "Private"  │   -   ║   0.05   │
  └───┴────────────┴───────╨──────────┘

Example of decision table defined using Markdown:

U Customer Order Discount
i i o
1 "Business" <10 0.10
2 "Business" >=10 0.15
3 "Private" - 0.05

License

Licensed under either of

at your option.

Contribution

Any contributions to DecisionToolkit are greatly appreciated. All contributions intentionally submitted for inclusion in the work by you, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2.6–3.5MB
~65K SLoC