beancount-format 0.1.21__tar.gz → 0.1.22__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. {beancount_format-0.1.21 → beancount_format-0.1.22}/Cargo.lock +192 -110
  2. {beancount_format-0.1.21 → beancount_format-0.1.22}/Cargo.toml +2 -5
  3. {beancount_format-0.1.21 → beancount_format-0.1.22}/PKG-INFO +1 -1
  4. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/Cargo.toml +1 -4
  5. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/src/format.rs +23 -14
  6. beancount_format-0.1.22/crates/beancount-formatter/src/parse.rs +5 -0
  7. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format_cases.rs +3 -4
  8. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter-cli/Cargo.toml +1 -1
  9. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter-cli/src/lib.rs +1 -2
  10. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter-py/Cargo.toml +1 -1
  11. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter-py/src/lib.rs +1 -3
  12. {beancount_format-0.1.21 → beancount_format-0.1.22}/pyproject.toml +2 -2
  13. {beancount_format-0.1.21 → beancount_format-0.1.22}/python/src/beancount_format/beancount_format.pyi +0 -1
  14. beancount_format-0.1.21/crates/beancount-formatter/src/parse.rs +0 -7
  15. beancount_format-0.1.21/patches/tree-sitter-language/Cargo.toml +0 -19
  16. beancount_format-0.1.21/patches/tree-sitter-language/LICENSE +0 -21
  17. beancount_format-0.1.21/patches/tree-sitter-language/README.md +0 -4
  18. beancount_format-0.1.21/patches/tree-sitter-language/build.rs +0 -13
  19. beancount_format-0.1.21/patches/tree-sitter-language/src/language.rs +0 -23
  20. beancount_format-0.1.21/patches/tree-sitter-language/wasm/include/assert.h +0 -14
  21. beancount_format-0.1.21/patches/tree-sitter-language/wasm/include/ctype.h +0 -8
  22. beancount_format-0.1.21/patches/tree-sitter-language/wasm/include/endian.h +0 -12
  23. beancount_format-0.1.21/patches/tree-sitter-language/wasm/include/inttypes.h +0 -8
  24. beancount_format-0.1.21/patches/tree-sitter-language/wasm/include/stdint.h +0 -46
  25. beancount_format-0.1.21/patches/tree-sitter-language/wasm/include/stdio.h +0 -36
  26. beancount_format-0.1.21/patches/tree-sitter-language/wasm/include/stdlib.h +0 -15
  27. beancount_format-0.1.21/patches/tree-sitter-language/wasm/include/string.h +0 -18
  28. beancount_format-0.1.21/patches/tree-sitter-language/wasm/include/wctype.h +0 -168
  29. beancount_format-0.1.21/patches/tree-sitter-language/wasm/src/stdio.c +0 -299
  30. beancount_format-0.1.21/patches/tree-sitter-language/wasm/src/stdlib.c +0 -161
  31. beancount_format-0.1.21/patches/tree-sitter-language/wasm/src/string.c +0 -66
  32. {beancount_format-0.1.21 → beancount_format-0.1.22}/LICENSE +0 -0
  33. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/src/configuration/configuration.rs +0 -0
  34. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/src/configuration/mod.rs +0 -0
  35. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/src/configuration/new_line_kind.rs +0 -0
  36. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/src/lib.rs +0 -0
  37. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/applies_configured_crlf_newlines.config.json +0 -0
  38. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/applies_configured_crlf_newlines.expected.bean +0 -0
  39. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/applies_configured_crlf_newlines.input.bean +0 -0
  40. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/caps_blank_lines_between_directives.expected.bean +0 -0
  41. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/caps_blank_lines_between_directives.input.bean +0 -0
  42. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/formats_all_directives.config.json +0 -0
  43. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/formats_all_directives.expected.bean +0 -0
  44. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/formats_all_directives.input.bean +0 -0
  45. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/formats_transaction_preserves_postings.expected.bean +0 -0
  46. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/formats_transaction_preserves_postings.input.bean +0 -0
  47. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/formats_without_changes_returns_none.expected.bean +0 -0
  48. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/formats_without_changes_returns_none.input.bean +0 -0
  49. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/normalizes_tabs_and_trailing_spaces.expected.bean +0 -0
  50. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/normalizes_tabs_and_trailing_spaces.input.bean +0 -0
  51. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/preserve-meta.expected.bean +0 -0
  52. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/preserve-meta.input.bean +0 -0
  53. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/preserve_comments.expected.bean +0 -0
  54. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/preserve_comments.input.bean +0 -0
  55. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/preserve_file_path_header.expected.bean +0 -0
  56. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/preserve_file_path_header.input.bean +0 -0
  57. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/support_input_without_eol.expected.bean +0 -0
  58. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter/tests/format-and-check/support_input_without_eol.input.bean +0 -0
  59. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter-cli/src/main.rs +0 -0
  60. {beancount_format-0.1.21 → beancount_format-0.1.22}/crates/beancount-formatter-cli/tests/cli_e2e.rs +0 -0
  61. {beancount_format-0.1.21 → beancount_format-0.1.22}/python/README.md +0 -0
  62. {beancount_format-0.1.21 → beancount_format-0.1.22}/python/src/beancount_format/__init__.py +0 -0
  63. {beancount_format-0.1.21 → beancount_format-0.1.22}/python/src/beancount_format/py.typed +0 -0
@@ -64,7 +64,7 @@ version = "1.1.5"
64
64
  source = "registry+https://github.com/rust-lang/crates.io-index"
65
65
  checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
66
66
  dependencies = [
67
- "windows-sys",
67
+ "windows-sys 0.61.2",
68
68
  ]
69
69
 
70
70
  [[package]]
@@ -75,7 +75,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
75
75
  dependencies = [
76
76
  "anstyle",
77
77
  "once_cell_polyfill",
78
- "windows-sys",
78
+ "windows-sys 0.61.2",
79
79
  ]
80
80
 
81
81
  [[package]]
@@ -84,6 +84,15 @@ version = "1.0.100"
84
84
  source = "registry+https://github.com/rust-lang/crates.io-index"
85
85
  checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
86
86
 
87
+ [[package]]
88
+ name = "ar_archive_writer"
89
+ version = "0.5.1"
90
+ source = "registry+https://github.com/rust-lang/crates.io-index"
91
+ checksum = "7eb93bbb63b9c227414f6eb3a0adfddca591a8ce1e9b60661bb08969b87e340b"
92
+ dependencies = [
93
+ "object",
94
+ ]
95
+
87
96
  [[package]]
88
97
  name = "arrayvec"
89
98
  version = "0.7.6"
@@ -128,19 +137,18 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
128
137
 
129
138
  [[package]]
130
139
  name = "beancount-formatter"
131
- version = "0.1.21"
140
+ version = "0.1.22"
132
141
  dependencies = [
133
142
  "anyhow",
134
143
  "beancount-parser",
135
144
  "serde",
136
145
  "serde_json",
137
146
  "similar",
138
- "tree-sitter",
139
147
  ]
140
148
 
141
149
  [[package]]
142
150
  name = "beancount-formatter-cli"
143
- version = "0.1.21"
151
+ version = "0.1.22"
144
152
  dependencies = [
145
153
  "anyhow",
146
154
  "assert_cmd",
@@ -154,7 +162,7 @@ dependencies = [
154
162
 
155
163
  [[package]]
156
164
  name = "beancount-formatter-py"
157
- version = "0.1.21"
165
+ version = "0.1.22"
158
166
  dependencies = [
159
167
  "beancount-formatter",
160
168
  "beancount-formatter-cli",
@@ -164,27 +172,16 @@ dependencies = [
164
172
  [[package]]
165
173
  name = "beancount-parser"
166
174
  version = "3.3.0-alpha.0"
167
- source = "git+https://github.com/trim21/beancount.git?rev=8b4e3311258194fe3127862dd4132028e97cc01d#8b4e3311258194fe3127862dd4132028e97cc01d"
175
+ source = "git+https://github.com/trim21/beancount.git?rev=04fa3cef8024afe7f4b4f03bcecfb0a86e914172#04fa3cef8024afe7f4b4f03bcecfb0a86e914172"
168
176
  dependencies = [
169
177
  "anyhow",
170
- "beancount-tree-sitter",
171
178
  "chrono",
179
+ "chumsky",
172
180
  "path-clean",
173
181
  "ropey",
174
182
  "rust_decimal",
175
183
  "serde_json",
176
184
  "smallvec",
177
- "tree-sitter",
178
- ]
179
-
180
- [[package]]
181
- name = "beancount-tree-sitter"
182
- version = "2.4.2"
183
- source = "git+https://github.com/trim21/beancount.git?rev=8b4e3311258194fe3127862dd4132028e97cc01d#8b4e3311258194fe3127862dd4132028e97cc01d"
184
- dependencies = [
185
- "cc",
186
- "tree-sitter",
187
- "tree-sitter-language",
188
185
  ]
189
186
 
190
187
  [[package]]
@@ -235,7 +232,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
235
232
  checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab"
236
233
  dependencies = [
237
234
  "memchr",
238
- "regex-automata",
235
+ "regex-automata 0.4.14",
239
236
  "serde",
240
237
  ]
241
238
 
@@ -272,9 +269,9 @@ dependencies = [
272
269
 
273
270
  [[package]]
274
271
  name = "bytes"
275
- version = "1.11.0"
272
+ version = "1.11.1"
276
273
  source = "registry+https://github.com/rust-lang/crates.io-index"
277
- checksum = "b35204fbdc0b3f4446b89fc1ac2cf84a8a68971995d0bf2e925ec7cd960f9cb3"
274
+ checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
278
275
 
279
276
  [[package]]
280
277
  name = "cc"
@@ -307,11 +304,25 @@ dependencies = [
307
304
  "num-traits",
308
305
  ]
309
306
 
307
+ [[package]]
308
+ name = "chumsky"
309
+ version = "0.12.0"
310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
311
+ checksum = "4ba4a05c9ce83b07de31b31c874e87c069881ac4355db9e752e3a55c11ec75a6"
312
+ dependencies = [
313
+ "hashbrown 0.15.5",
314
+ "regex-automata 0.3.9",
315
+ "serde",
316
+ "stacker",
317
+ "unicode-ident",
318
+ "unicode-segmentation",
319
+ ]
320
+
310
321
  [[package]]
311
322
  name = "clap"
312
- version = "4.5.56"
323
+ version = "4.5.57"
313
324
  source = "registry+https://github.com/rust-lang/crates.io-index"
314
- checksum = "a75ca66430e33a14957acc24c5077b503e7d374151b2b4b3a10c83b4ceb4be0e"
325
+ checksum = "6899ea499e3fb9305a65d5ebf6e3d2248c5fab291f300ad0a704fbe142eae31a"
315
326
  dependencies = [
316
327
  "clap_builder",
317
328
  "clap_derive",
@@ -319,9 +330,9 @@ dependencies = [
319
330
 
320
331
  [[package]]
321
332
  name = "clap_builder"
322
- version = "4.5.56"
333
+ version = "4.5.57"
323
334
  source = "registry+https://github.com/rust-lang/crates.io-index"
324
- checksum = "793207c7fa6300a0608d1080b858e5fdbe713cdc1c8db9fb17777d8a13e63df0"
335
+ checksum = "7b12c8b680195a62a8364d16b8447b01b6c2c8f9aaf68bee653be34d4245e238"
325
336
  dependencies = [
326
337
  "anstream",
327
338
  "anstyle",
@@ -408,7 +419,7 @@ dependencies = [
408
419
 
409
420
  [[package]]
410
421
  name = "dprint-plugin-beancount"
411
- version = "0.1.21"
422
+ version = "0.1.22"
412
423
  dependencies = [
413
424
  "anyhow",
414
425
  "beancount-formatter",
@@ -429,7 +440,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
429
440
  checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
430
441
  dependencies = [
431
442
  "libc",
432
- "windows-sys",
443
+ "windows-sys 0.61.2",
433
444
  ]
434
445
 
435
446
  [[package]]
@@ -497,8 +508,8 @@ dependencies = [
497
508
  "aho-corasick",
498
509
  "bstr",
499
510
  "log",
500
- "regex-automata",
501
- "regex-syntax",
511
+ "regex-automata 0.4.14",
512
+ "regex-syntax 0.8.9",
502
513
  ]
503
514
 
504
515
  [[package]]
@@ -554,7 +565,7 @@ dependencies = [
554
565
  "globset",
555
566
  "log",
556
567
  "memchr",
557
- "regex-automata",
568
+ "regex-automata 0.4.14",
558
569
  "same-file",
559
570
  "walkdir",
560
571
  "winapi-util",
@@ -572,15 +583,6 @@ dependencies = [
572
583
  "serde_core",
573
584
  ]
574
585
 
575
- [[package]]
576
- name = "indoc"
577
- version = "2.0.7"
578
- source = "registry+https://github.com/rust-lang/crates.io-index"
579
- checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
580
- dependencies = [
581
- "rustversion",
582
- ]
583
-
584
586
  [[package]]
585
587
  name = "is_terminal_polyfill"
586
588
  version = "1.70.2"
@@ -627,15 +629,6 @@ version = "2.7.6"
627
629
  source = "registry+https://github.com/rust-lang/crates.io-index"
628
630
  checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
629
631
 
630
- [[package]]
631
- name = "memoffset"
632
- version = "0.9.1"
633
- source = "registry+https://github.com/rust-lang/crates.io-index"
634
- checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
635
- dependencies = [
636
- "autocfg",
637
- ]
638
-
639
632
  [[package]]
640
633
  name = "normalize-line-endings"
641
634
  version = "0.3.0"
@@ -651,6 +644,15 @@ dependencies = [
651
644
  "autocfg",
652
645
  ]
653
646
 
647
+ [[package]]
648
+ name = "object"
649
+ version = "0.37.3"
650
+ source = "registry+https://github.com/rust-lang/crates.io-index"
651
+ checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe"
652
+ dependencies = [
653
+ "memchr",
654
+ ]
655
+
654
656
  [[package]]
655
657
  name = "once_cell"
656
658
  version = "1.21.3"
@@ -732,6 +734,16 @@ dependencies = [
732
734
  "unicode-ident",
733
735
  ]
734
736
 
737
+ [[package]]
738
+ name = "psm"
739
+ version = "0.1.29"
740
+ source = "registry+https://github.com/rust-lang/crates.io-index"
741
+ checksum = "1fa96cb91275ed31d6da3e983447320c4eb219ac180fa1679a0889ff32861e2d"
742
+ dependencies = [
743
+ "ar_archive_writer",
744
+ "cc",
745
+ ]
746
+
735
747
  [[package]]
736
748
  name = "ptr_meta"
737
749
  version = "0.1.4"
@@ -754,26 +766,23 @@ dependencies = [
754
766
 
755
767
  [[package]]
756
768
  name = "pyo3"
757
- version = "0.27.2"
769
+ version = "0.28.0"
758
770
  source = "registry+https://github.com/rust-lang/crates.io-index"
759
- checksum = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d"
771
+ checksum = "fcf3ccafdf54c050be48a3a086d372f77ba6615f5057211607cd30e5ac5cec6d"
760
772
  dependencies = [
761
- "indoc",
762
773
  "libc",
763
- "memoffset",
764
774
  "once_cell",
765
775
  "portable-atomic",
766
776
  "pyo3-build-config",
767
777
  "pyo3-ffi",
768
778
  "pyo3-macros",
769
- "unindent",
770
779
  ]
771
780
 
772
781
  [[package]]
773
782
  name = "pyo3-build-config"
774
- version = "0.27.2"
783
+ version = "0.28.0"
775
784
  source = "registry+https://github.com/rust-lang/crates.io-index"
776
- checksum = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6"
785
+ checksum = "972720a441c91fd9c49f212a1d2d74c6e3803b231ebc8d66c51efbd7ccab11c8"
777
786
  dependencies = [
778
787
  "python3-dll-a",
779
788
  "target-lexicon",
@@ -781,9 +790,9 @@ dependencies = [
781
790
 
782
791
  [[package]]
783
792
  name = "pyo3-ffi"
784
- version = "0.27.2"
793
+ version = "0.28.0"
785
794
  source = "registry+https://github.com/rust-lang/crates.io-index"
786
- checksum = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089"
795
+ checksum = "5994456d9dab8934d600d3867571b6410f24fbd6002570ad56356733eb54859b"
787
796
  dependencies = [
788
797
  "libc",
789
798
  "pyo3-build-config",
@@ -791,9 +800,9 @@ dependencies = [
791
800
 
792
801
  [[package]]
793
802
  name = "pyo3-macros"
794
- version = "0.27.2"
803
+ version = "0.28.0"
795
804
  source = "registry+https://github.com/rust-lang/crates.io-index"
796
- checksum = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02"
805
+ checksum = "11ce9cc8d81b3c4969748807604d92b4eef363c5bb82b1a1bdb34ec6f1093a18"
797
806
  dependencies = [
798
807
  "proc-macro2",
799
808
  "pyo3-macros-backend",
@@ -803,9 +812,9 @@ dependencies = [
803
812
 
804
813
  [[package]]
805
814
  name = "pyo3-macros-backend"
806
- version = "0.27.2"
815
+ version = "0.28.0"
807
816
  source = "registry+https://github.com/rust-lang/crates.io-index"
808
- checksum = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9"
817
+ checksum = "eaf4b60036a154d23282679b658e3cc7d88d3b8c9a40b43824785f232d2e1b98"
809
818
  dependencies = [
810
819
  "heck",
811
820
  "proc-macro2",
@@ -876,32 +885,49 @@ dependencies = [
876
885
 
877
886
  [[package]]
878
887
  name = "regex"
879
- version = "1.12.2"
888
+ version = "1.12.3"
880
889
  source = "registry+https://github.com/rust-lang/crates.io-index"
881
- checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"
890
+ checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
882
891
  dependencies = [
883
892
  "aho-corasick",
884
893
  "memchr",
885
- "regex-automata",
886
- "regex-syntax",
894
+ "regex-automata 0.4.14",
895
+ "regex-syntax 0.8.9",
887
896
  ]
888
897
 
889
898
  [[package]]
890
899
  name = "regex-automata"
891
- version = "0.4.13"
900
+ version = "0.3.9"
892
901
  source = "registry+https://github.com/rust-lang/crates.io-index"
893
- checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
902
+ checksum = "59b23e92ee4318893fa3fe3e6fb365258efbfe6ac6ab30f090cdcbb7aa37efa9"
894
903
  dependencies = [
895
904
  "aho-corasick",
896
905
  "memchr",
897
- "regex-syntax",
906
+ "regex-syntax 0.7.5",
907
+ ]
908
+
909
+ [[package]]
910
+ name = "regex-automata"
911
+ version = "0.4.14"
912
+ source = "registry+https://github.com/rust-lang/crates.io-index"
913
+ checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
914
+ dependencies = [
915
+ "aho-corasick",
916
+ "memchr",
917
+ "regex-syntax 0.8.9",
898
918
  ]
899
919
 
900
920
  [[package]]
901
921
  name = "regex-syntax"
902
- version = "0.8.8"
922
+ version = "0.7.5"
903
923
  source = "registry+https://github.com/rust-lang/crates.io-index"
904
- checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
924
+ checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da"
925
+
926
+ [[package]]
927
+ name = "regex-syntax"
928
+ version = "0.8.9"
929
+ source = "registry+https://github.com/rust-lang/crates.io-index"
930
+ checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c"
905
931
 
906
932
  [[package]]
907
933
  name = "rend"
@@ -983,7 +1009,7 @@ dependencies = [
983
1009
  "errno",
984
1010
  "libc",
985
1011
  "linux-raw-sys",
986
- "windows-sys",
1012
+ "windows-sys 0.61.2",
987
1013
  ]
988
1014
 
989
1015
  [[package]]
@@ -1089,16 +1115,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1089
1115
  checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
1090
1116
 
1091
1117
  [[package]]
1092
- name = "str_indices"
1093
- version = "0.4.4"
1118
+ name = "stacker"
1119
+ version = "0.1.22"
1094
1120
  source = "registry+https://github.com/rust-lang/crates.io-index"
1095
- checksum = "d08889ec5408683408db66ad89e0e1f93dff55c73a4ccc71c427d5b277ee47e6"
1121
+ checksum = "e1f8b29fb42aafcea4edeeb6b2f2d7ecd0d969c48b4cf0d2e64aafc471dd6e59"
1122
+ dependencies = [
1123
+ "cc",
1124
+ "cfg-if",
1125
+ "libc",
1126
+ "psm",
1127
+ "windows-sys 0.59.0",
1128
+ ]
1096
1129
 
1097
1130
  [[package]]
1098
- name = "streaming-iterator"
1099
- version = "0.1.9"
1131
+ name = "str_indices"
1132
+ version = "0.4.4"
1100
1133
  source = "registry+https://github.com/rust-lang/crates.io-index"
1101
- checksum = "2b2231b7c3057d5e4ad0156fb3dc807d900806020c5ffa3ee6ff2c8c76fb8520"
1134
+ checksum = "d08889ec5408683408db66ad89e0e1f93dff55c73a4ccc71c427d5b277ee47e6"
1102
1135
 
1103
1136
  [[package]]
1104
1137
  name = "strsim"
@@ -1150,7 +1183,7 @@ dependencies = [
1150
1183
  "getrandom 0.3.4",
1151
1184
  "once_cell",
1152
1185
  "rustix",
1153
- "windows-sys",
1186
+ "windows-sys 0.61.2",
1154
1187
  ]
1155
1188
 
1156
1189
  [[package]]
@@ -1225,24 +1258,6 @@ version = "1.0.6+spec-1.1.0"
1225
1258
  source = "registry+https://github.com/rust-lang/crates.io-index"
1226
1259
  checksum = "ab16f14aed21ee8bfd8ec22513f7287cd4a91aa92e44edfe2c17ddd004e92607"
1227
1260
 
1228
- [[package]]
1229
- name = "tree-sitter"
1230
- version = "0.26.3"
1231
- source = "registry+https://github.com/rust-lang/crates.io-index"
1232
- checksum = "974d205cc395652cfa8b37daa053fe56eebd429acf8dc055503fee648dae981e"
1233
- dependencies = [
1234
- "cc",
1235
- "regex",
1236
- "regex-syntax",
1237
- "serde_json",
1238
- "streaming-iterator",
1239
- "tree-sitter-language",
1240
- ]
1241
-
1242
- [[package]]
1243
- name = "tree-sitter-language"
1244
- version = "0.1.6"
1245
-
1246
1261
  [[package]]
1247
1262
  name = "unicode-ident"
1248
1263
  version = "1.0.22"
@@ -1261,12 +1276,6 @@ version = "0.2.2"
1261
1276
  source = "registry+https://github.com/rust-lang/crates.io-index"
1262
1277
  checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
1263
1278
 
1264
- [[package]]
1265
- name = "unindent"
1266
- version = "0.2.4"
1267
- source = "registry+https://github.com/rust-lang/crates.io-index"
1268
- checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
1269
-
1270
1279
  [[package]]
1271
1280
  name = "utf8parse"
1272
1281
  version = "0.2.2"
@@ -1374,7 +1383,7 @@ version = "0.1.11"
1374
1383
  source = "registry+https://github.com/rust-lang/crates.io-index"
1375
1384
  checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
1376
1385
  dependencies = [
1377
- "windows-sys",
1386
+ "windows-sys 0.61.2",
1378
1387
  ]
1379
1388
 
1380
1389
  [[package]]
@@ -1383,6 +1392,15 @@ version = "0.2.1"
1383
1392
  source = "registry+https://github.com/rust-lang/crates.io-index"
1384
1393
  checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
1385
1394
 
1395
+ [[package]]
1396
+ name = "windows-sys"
1397
+ version = "0.59.0"
1398
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1399
+ checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
1400
+ dependencies = [
1401
+ "windows-targets",
1402
+ ]
1403
+
1386
1404
  [[package]]
1387
1405
  name = "windows-sys"
1388
1406
  version = "0.61.2"
@@ -1392,6 +1410,70 @@ dependencies = [
1392
1410
  "windows-link",
1393
1411
  ]
1394
1412
 
1413
+ [[package]]
1414
+ name = "windows-targets"
1415
+ version = "0.52.6"
1416
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1417
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
1418
+ dependencies = [
1419
+ "windows_aarch64_gnullvm",
1420
+ "windows_aarch64_msvc",
1421
+ "windows_i686_gnu",
1422
+ "windows_i686_gnullvm",
1423
+ "windows_i686_msvc",
1424
+ "windows_x86_64_gnu",
1425
+ "windows_x86_64_gnullvm",
1426
+ "windows_x86_64_msvc",
1427
+ ]
1428
+
1429
+ [[package]]
1430
+ name = "windows_aarch64_gnullvm"
1431
+ version = "0.52.6"
1432
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1433
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
1434
+
1435
+ [[package]]
1436
+ name = "windows_aarch64_msvc"
1437
+ version = "0.52.6"
1438
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1439
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
1440
+
1441
+ [[package]]
1442
+ name = "windows_i686_gnu"
1443
+ version = "0.52.6"
1444
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1445
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
1446
+
1447
+ [[package]]
1448
+ name = "windows_i686_gnullvm"
1449
+ version = "0.52.6"
1450
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1451
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
1452
+
1453
+ [[package]]
1454
+ name = "windows_i686_msvc"
1455
+ version = "0.52.6"
1456
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1457
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
1458
+
1459
+ [[package]]
1460
+ name = "windows_x86_64_gnu"
1461
+ version = "0.52.6"
1462
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1463
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
1464
+
1465
+ [[package]]
1466
+ name = "windows_x86_64_gnullvm"
1467
+ version = "0.52.6"
1468
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1469
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
1470
+
1471
+ [[package]]
1472
+ name = "windows_x86_64_msvc"
1473
+ version = "0.52.6"
1474
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1475
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
1476
+
1395
1477
  [[package]]
1396
1478
  name = "winnow"
1397
1479
  version = "0.7.14"
@@ -1418,18 +1500,18 @@ dependencies = [
1418
1500
 
1419
1501
  [[package]]
1420
1502
  name = "zerocopy"
1421
- version = "0.8.37"
1503
+ version = "0.8.38"
1422
1504
  source = "registry+https://github.com/rust-lang/crates.io-index"
1423
- checksum = "7456cf00f0685ad319c5b1693f291a650eaf345e941d082fc4e03df8a03996ac"
1505
+ checksum = "57cf3aa6855b23711ee9852dfc97dfaa51c45feaba5b645d0c777414d494a961"
1424
1506
  dependencies = [
1425
1507
  "zerocopy-derive",
1426
1508
  ]
1427
1509
 
1428
1510
  [[package]]
1429
1511
  name = "zerocopy-derive"
1430
- version = "0.8.37"
1512
+ version = "0.8.38"
1431
1513
  source = "registry+https://github.com/rust-lang/crates.io-index"
1432
- checksum = "1328722bbf2115db7e19d69ebcc15e795719e2d66b60827c6a69a117365e37a0"
1514
+ checksum = "8a616990af1a287837c4fe6596ad77ef57948f787e46ce28e166facc0cc1cb75"
1433
1515
  dependencies = [
1434
1516
  "proc-macro2",
1435
1517
  "quote",
@@ -1438,6 +1520,6 @@ dependencies = [
1438
1520
 
1439
1521
  [[package]]
1440
1522
  name = "zmij"
1441
- version = "1.0.18"
1523
+ version = "1.0.19"
1442
1524
  source = "registry+https://github.com/rust-lang/crates.io-index"
1443
- checksum = "1966f8ac2c1f76987d69a74d0e0f929241c10e78136434e3be70ff7f58f64214"
1525
+ checksum = "3ff05f8caa9038894637571ae6b9e29466c1f4f829d26c9b28f869a29cbe3445"
@@ -3,7 +3,7 @@ members = ["crates/*"]
3
3
  resolver = "3"
4
4
 
5
5
  [workspace.package]
6
- version = "0.1.21"
6
+ version = "0.1.22"
7
7
  authors = ["Trim21 <trim21.me@gmail.com>"]
8
8
  edition = "2024"
9
9
  homepage = "https://github.com/trim21/beancount-format"
@@ -14,12 +14,9 @@ description = "Beancount formatter library and tooling."
14
14
  [workspace.dependencies]
15
15
  anyhow = "1.0.100"
16
16
  beancount-formatter = { path = "./crates/beancount-formatter/" }
17
+ beancount-parser = { git = "https://github.com/trim21/beancount.git", rev = "04fa3cef8024afe7f4b4f03bcecfb0a86e914172" }
17
18
  serde = { version = "1.0.228", features = ["derive"] }
18
19
 
19
- [patch.crates-io]
20
- tree-sitter-language = { path = "./patches/tree-sitter-language/" }
21
- # tree-sitter-language = { git = 'https://github.com/tree-sitter/tree-sitter.git', rev = '88a54754966cc8156d557b531a7b8a808a1768a5' }
22
-
23
20
  [profile.release]
24
21
  opt-level = 3
25
22
  debug = false
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beancount-format
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python
6
6
  Classifier: Programming Language :: Python :: 3
@@ -10,11 +10,8 @@ description = "Core beancount formatter logic."
10
10
 
11
11
  [dependencies]
12
12
  anyhow = { workspace = true }
13
- beancount-parser = { git = "https://github.com/trim21/beancount.git", rev = "8b4e3311258194fe3127862dd4132028e97cc01d" }
13
+ beancount-parser = { workspace = true }
14
14
  serde = { workspace = true }
15
- # beancount-parser = { path = "../../../beancount/beancount/" }
16
- # beancount-parser = { path = "../../../beancount/beancount/crates/beancount-parser/" }
17
- tree-sitter = { version = "0.26.3" }
18
15
 
19
16
  [dev-dependencies]
20
17
  serde_json = "1.0.149"