headson 0.2.3__tar.gz → 0.2.5__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.

Potentially problematic release.


This version of headson might be problematic. Click here for more details.

Files changed (47) hide show
  1. {headson-0.2.3 → headson-0.2.5}/Cargo.lock +102 -192
  2. {headson-0.2.3 → headson-0.2.5}/Cargo.toml +9 -5
  3. {headson-0.2.3 → headson-0.2.5}/PKG-INFO +2 -1
  4. {headson-0.2.3 → headson-0.2.5}/README.md +1 -0
  5. {headson-0.2.3 → headson-0.2.5}/pyproject.toml +1 -1
  6. {headson-0.2.3 → headson-0.2.5}/python/Cargo.lock +45 -227
  7. {headson-0.2.3 → headson-0.2.5}/python/Cargo.toml +2 -2
  8. {headson-0.2.3 → headson-0.2.5}/python/src/lib.rs +1 -1
  9. headson-0.2.5/src/main.rs +245 -0
  10. {headson-0.2.3 → headson-0.2.5}/src/order/mod.rs +2 -1
  11. {headson-0.2.3 → headson-0.2.5}/src/serialization/mod.rs +1 -1
  12. {headson-0.2.3 → headson-0.2.5}/src/serialization/templates/js.rs +2 -2
  13. {headson-0.2.3 → headson-0.2.5}/src/serialization/templates/json.rs +2 -2
  14. {headson-0.2.3 → headson-0.2.5}/src/serialization/templates/mod.rs +4 -4
  15. {headson-0.2.3 → headson-0.2.5}/src/serialization/templates/pseudo.rs +2 -2
  16. headson-0.2.3/src/main.rs +0 -174
  17. {headson-0.2.3 → headson-0.2.5}/JSONTestSuite/LICENSE +0 -0
  18. {headson-0.2.3 → headson-0.2.5}/JSONTestSuite/README.md +0 -0
  19. {headson-0.2.3 → headson-0.2.5}/LICENSE +0 -0
  20. {headson-0.2.3 → headson-0.2.5}/python/README.md +0 -0
  21. {headson-0.2.3 → headson-0.2.5}/python/headson/__init__.py +0 -0
  22. {headson-0.2.3 → headson-0.2.5}/src/json_ingest/builder.rs +0 -0
  23. {headson-0.2.3 → headson-0.2.5}/src/json_ingest/mod.rs +0 -0
  24. {headson-0.2.3 → headson-0.2.5}/src/lib.rs +0 -0
  25. {headson-0.2.3 → headson-0.2.5}/src/order/build.rs +0 -0
  26. {headson-0.2.3 → headson-0.2.5}/src/order/scoring.rs +0 -0
  27. {headson-0.2.3 → headson-0.2.5}/src/order/snapshots/headson__order__build__tests__order_empty_array_order.snap +0 -0
  28. {headson-0.2.3 → headson-0.2.5}/src/order/snapshots/headson__order__build__tests__order_single_string_array_order.snap +0 -0
  29. {headson-0.2.3 → headson-0.2.5}/src/order/types.rs +0 -0
  30. {headson-0.2.3 → headson-0.2.5}/src/serialization/snapshots/headson__serialization__tests__arena_render_empty.snap +0 -0
  31. {headson-0.2.3 → headson-0.2.5}/src/serialization/snapshots/headson__serialization__tests__arena_render_single.snap +0 -0
  32. {headson-0.2.3 → headson-0.2.5}/src/serialization/templates/core.rs +0 -0
  33. {headson-0.2.3 → headson-0.2.5}/src/serialization/types.rs +0 -0
  34. {headson-0.2.3 → headson-0.2.5}/src/snapshots/headson__order__tests__order_empty_array_order.snap +0 -0
  35. {headson-0.2.3 → headson-0.2.5}/src/snapshots/headson__order__tests__order_single_string_array_order.snap +0 -0
  36. {headson-0.2.3 → headson-0.2.5}/src/snapshots/headson__order__tests__pq_empty_array_queue.snap +0 -0
  37. {headson-0.2.3 → headson-0.2.5}/src/snapshots/headson__order__tests__pq_single_string_array_queue.snap +0 -0
  38. {headson-0.2.3 → headson-0.2.5}/src/snapshots/headson__queue__tests__pq_empty_array_queue.snap +0 -0
  39. {headson-0.2.3 → headson-0.2.5}/src/snapshots/headson__queue__tests__pq_single_string_array_queue.snap +0 -0
  40. {headson-0.2.3 → headson-0.2.5}/src/snapshots/headson__tree__tests__build_tree_empty.snap +0 -0
  41. {headson-0.2.3 → headson-0.2.5}/src/snapshots/headson__tree__tests__build_tree_single.snap +0 -0
  42. {headson-0.2.3 → headson-0.2.5}/src/utils/graph.rs +0 -0
  43. {headson-0.2.3 → headson-0.2.5}/src/utils/json.rs +0 -0
  44. {headson-0.2.3 → headson-0.2.5}/src/utils/mod.rs +0 -0
  45. {headson-0.2.3 → headson-0.2.5}/src/utils/search.rs +0 -0
  46. {headson-0.2.3 → headson-0.2.5}/src/utils/text.rs +0 -0
  47. {headson-0.2.3 → headson-0.2.5}/src/utils/tree_arena.rs +0 -0
@@ -2,18 +2,6 @@
2
2
  # It is not intended for manual editing.
3
3
  version = 4
4
4
 
5
- [[package]]
6
- name = "ahash"
7
- version = "0.8.12"
8
- source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
10
- dependencies = [
11
- "cfg-if",
12
- "once_cell",
13
- "version_check",
14
- "zerocopy",
15
- ]
16
-
17
5
  [[package]]
18
6
  name = "allocator-api2"
19
7
  version = "0.2.21"
@@ -98,6 +86,12 @@ version = "1.5.0"
98
86
  source = "registry+https://github.com/rust-lang/crates.io-index"
99
87
  checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
100
88
 
89
+ [[package]]
90
+ name = "bitflags"
91
+ version = "2.10.0"
92
+ source = "registry+https://github.com/rust-lang/crates.io-index"
93
+ checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
94
+
101
95
  [[package]]
102
96
  name = "bstr"
103
97
  version = "1.12.0"
@@ -109,12 +103,6 @@ dependencies = [
109
103
  "serde",
110
104
  ]
111
105
 
112
- [[package]]
113
- name = "bumpalo"
114
- version = "3.19.0"
115
- source = "registry+https://github.com/rust-lang/crates.io-index"
116
- checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
117
-
118
106
  [[package]]
119
107
  name = "cfg-if"
120
108
  version = "1.0.4"
@@ -180,10 +168,13 @@ dependencies = [
180
168
  ]
181
169
 
182
170
  [[package]]
183
- name = "deunicode"
184
- version = "1.6.2"
171
+ name = "content_inspector"
172
+ version = "0.2.4"
185
173
  source = "registry+https://github.com/rust-lang/crates.io-index"
186
- checksum = "abd57806937c9cc163efc8ea3910e00a62e2aeb0b8119f1793a978088f8f6b04"
174
+ checksum = "b7bda66e858c683005a53a9a60c69a4aca7eeaa45d124526e389f7aec8e62f38"
175
+ dependencies = [
176
+ "memchr",
177
+ ]
187
178
 
188
179
  [[package]]
189
180
  name = "difflib"
@@ -204,42 +195,59 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
204
195
  checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"
205
196
 
206
197
  [[package]]
207
- name = "fake"
208
- version = "2.10.0"
198
+ name = "equivalent"
199
+ version = "1.0.2"
200
+ source = "registry+https://github.com/rust-lang/crates.io-index"
201
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
202
+
203
+ [[package]]
204
+ name = "errno"
205
+ version = "0.3.14"
209
206
  source = "registry+https://github.com/rust-lang/crates.io-index"
210
- checksum = "2d391ba4af7f1d93f01fcf7b2f29e2bc9348e109dfdbf4dcbdc51dfa38dab0b6"
207
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
211
208
  dependencies = [
212
- "deunicode",
213
- "rand",
209
+ "libc",
210
+ "windows-sys 0.60.2",
214
211
  ]
215
212
 
213
+ [[package]]
214
+ name = "fastrand"
215
+ version = "2.3.0"
216
+ source = "registry+https://github.com/rust-lang/crates.io-index"
217
+ checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
218
+
216
219
  [[package]]
217
220
  name = "float-cmp"
218
- version = "0.9.0"
221
+ version = "0.10.0"
219
222
  source = "registry+https://github.com/rust-lang/crates.io-index"
220
- checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4"
223
+ checksum = "b09cf3155332e944990140d967ff5eceb70df778b34f77d8075db46e4704e6d8"
221
224
  dependencies = [
222
225
  "num-traits",
223
226
  ]
224
227
 
228
+ [[package]]
229
+ name = "foldhash"
230
+ version = "0.2.0"
231
+ source = "registry+https://github.com/rust-lang/crates.io-index"
232
+ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
233
+
225
234
  [[package]]
226
235
  name = "getrandom"
227
- version = "0.2.16"
236
+ version = "0.3.4"
228
237
  source = "registry+https://github.com/rust-lang/crates.io-index"
229
- checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592"
238
+ checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
230
239
  dependencies = [
231
240
  "cfg-if",
232
- "js-sys",
233
241
  "libc",
234
- "wasi",
235
- "wasm-bindgen",
242
+ "r-efi",
243
+ "wasip2",
236
244
  ]
237
245
 
238
246
  [[package]]
239
247
  name = "halfbrown"
240
- version = "0.2.5"
248
+ version = "0.4.0"
241
249
  source = "registry+https://github.com/rust-lang/crates.io-index"
242
- checksum = "8588661a8607108a5ca69cab034063441a0413a0b041c13618a7dd348021ef6f"
250
+ checksum = "0c7ed2f2edad8a14c8186b847909a41fbb9c3eafa44f88bd891114ed5019da09"
243
251
  dependencies = [
244
252
  "hashbrown",
245
253
  "serde",
@@ -247,28 +255,30 @@ dependencies = [
247
255
 
248
256
  [[package]]
249
257
  name = "hashbrown"
250
- version = "0.14.5"
258
+ version = "0.16.0"
251
259
  source = "registry+https://github.com/rust-lang/crates.io-index"
252
- checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
260
+ checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d"
253
261
  dependencies = [
254
- "ahash",
255
262
  "allocator-api2",
263
+ "equivalent",
264
+ "foldhash",
256
265
  ]
257
266
 
258
267
  [[package]]
259
268
  name = "headson"
260
- version = "0.2.3"
269
+ version = "0.2.5"
261
270
  dependencies = [
262
271
  "anyhow",
263
272
  "assert_cmd",
264
273
  "clap",
265
- "fake",
274
+ "content_inspector",
266
275
  "insta",
267
276
  "rand",
268
277
  "rand_chacha",
269
278
  "serde",
270
279
  "serde_json",
271
280
  "simd-json",
281
+ "tempfile",
272
282
  "test_each_file",
273
283
  "unicode-segmentation",
274
284
  ]
@@ -302,73 +312,6 @@ version = "1.0.15"
302
312
  source = "registry+https://github.com/rust-lang/crates.io-index"
303
313
  checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
304
314
 
305
- [[package]]
306
- name = "js-sys"
307
- version = "0.3.81"
308
- source = "registry+https://github.com/rust-lang/crates.io-index"
309
- checksum = "ec48937a97411dcb524a265206ccd4c90bb711fca92b2792c407f268825b9305"
310
- dependencies = [
311
- "once_cell",
312
- "wasm-bindgen",
313
- ]
314
-
315
- [[package]]
316
- name = "lexical-core"
317
- version = "1.0.6"
318
- source = "registry+https://github.com/rust-lang/crates.io-index"
319
- checksum = "7d8d125a277f807e55a77304455eb7b1cb52f2b18c143b60e766c120bd64a594"
320
- dependencies = [
321
- "lexical-parse-float",
322
- "lexical-parse-integer",
323
- "lexical-util",
324
- "lexical-write-float",
325
- "lexical-write-integer",
326
- ]
327
-
328
- [[package]]
329
- name = "lexical-parse-float"
330
- version = "1.0.6"
331
- source = "registry+https://github.com/rust-lang/crates.io-index"
332
- checksum = "52a9f232fbd6f550bc0137dcb5f99ab674071ac2d690ac69704593cb4abbea56"
333
- dependencies = [
334
- "lexical-parse-integer",
335
- "lexical-util",
336
- ]
337
-
338
- [[package]]
339
- name = "lexical-parse-integer"
340
- version = "1.0.6"
341
- source = "registry+https://github.com/rust-lang/crates.io-index"
342
- checksum = "9a7a039f8fb9c19c996cd7b2fcce303c1b2874fe1aca544edc85c4a5f8489b34"
343
- dependencies = [
344
- "lexical-util",
345
- ]
346
-
347
- [[package]]
348
- name = "lexical-util"
349
- version = "1.0.7"
350
- source = "registry+https://github.com/rust-lang/crates.io-index"
351
- checksum = "2604dd126bb14f13fb5d1bd6a66155079cb9fa655b37f875b3a742c705dbed17"
352
-
353
- [[package]]
354
- name = "lexical-write-float"
355
- version = "1.0.6"
356
- source = "registry+https://github.com/rust-lang/crates.io-index"
357
- checksum = "50c438c87c013188d415fbabbb1dceb44249ab81664efbd31b14ae55dabb6361"
358
- dependencies = [
359
- "lexical-util",
360
- "lexical-write-integer",
361
- ]
362
-
363
- [[package]]
364
- name = "lexical-write-integer"
365
- version = "1.0.6"
366
- source = "registry+https://github.com/rust-lang/crates.io-index"
367
- checksum = "409851a618475d2d5796377cad353802345cba92c867d9fbcde9cf4eac4e14df"
368
- dependencies = [
369
- "lexical-util",
370
- ]
371
-
372
315
  [[package]]
373
316
  name = "libc"
374
317
  version = "0.2.177"
@@ -376,10 +319,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
376
319
  checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"
377
320
 
378
321
  [[package]]
379
- name = "log"
380
- version = "0.4.28"
322
+ name = "linux-raw-sys"
323
+ version = "0.11.0"
381
324
  source = "registry+https://github.com/rust-lang/crates.io-index"
382
- checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
325
+ checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
383
326
 
384
327
  [[package]]
385
328
  name = "memchr"
@@ -462,22 +405,27 @@ dependencies = [
462
405
  "proc-macro2",
463
406
  ]
464
407
 
408
+ [[package]]
409
+ name = "r-efi"
410
+ version = "5.3.0"
411
+ source = "registry+https://github.com/rust-lang/crates.io-index"
412
+ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
413
+
465
414
  [[package]]
466
415
  name = "rand"
467
- version = "0.8.5"
416
+ version = "0.9.2"
468
417
  source = "registry+https://github.com/rust-lang/crates.io-index"
469
- checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
418
+ checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
470
419
  dependencies = [
471
- "libc",
472
420
  "rand_chacha",
473
421
  "rand_core",
474
422
  ]
475
423
 
476
424
  [[package]]
477
425
  name = "rand_chacha"
478
- version = "0.3.1"
426
+ version = "0.9.0"
479
427
  source = "registry+https://github.com/rust-lang/crates.io-index"
480
- checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
428
+ checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
481
429
  dependencies = [
482
430
  "ppv-lite86",
483
431
  "rand_core",
@@ -485,9 +433,9 @@ dependencies = [
485
433
 
486
434
  [[package]]
487
435
  name = "rand_core"
488
- version = "0.6.4"
436
+ version = "0.9.3"
489
437
  source = "registry+https://github.com/rust-lang/crates.io-index"
490
- checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
438
+ checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38"
491
439
  dependencies = [
492
440
  "getrandom",
493
441
  ]
@@ -519,10 +467,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
519
467
  checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
520
468
 
521
469
  [[package]]
522
- name = "rustversion"
523
- version = "1.0.22"
470
+ name = "rustix"
471
+ version = "1.1.2"
524
472
  source = "registry+https://github.com/rust-lang/crates.io-index"
525
- checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
473
+ checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"
474
+ dependencies = [
475
+ "bitflags",
476
+ "errno",
477
+ "libc",
478
+ "linux-raw-sys",
479
+ "windows-sys 0.60.2",
480
+ ]
526
481
 
527
482
  [[package]]
528
483
  name = "ryu"
@@ -575,13 +530,11 @@ dependencies = [
575
530
 
576
531
  [[package]]
577
532
  name = "simd-json"
578
- version = "0.13.11"
533
+ version = "0.17.0"
579
534
  source = "registry+https://github.com/rust-lang/crates.io-index"
580
- checksum = "a0228a564470f81724e30996bbc2b171713b37b15254a6440c7e2d5449b95691"
535
+ checksum = "4255126f310d2ba20048db6321c81ab376f6a6735608bf11f0785c41f01f64e3"
581
536
  dependencies = [
582
- "getrandom",
583
537
  "halfbrown",
584
- "lexical-core",
585
538
  "ref-cast",
586
539
  "serde",
587
540
  "serde_json",
@@ -618,6 +571,19 @@ dependencies = [
618
571
  "unicode-ident",
619
572
  ]
620
573
 
574
+ [[package]]
575
+ name = "tempfile"
576
+ version = "3.23.0"
577
+ source = "registry+https://github.com/rust-lang/crates.io-index"
578
+ checksum = "2d31c77bdf42a745371d260a26ca7163f1e0924b64afa0b688e61b5a9fa02f16"
579
+ dependencies = [
580
+ "fastrand",
581
+ "getrandom",
582
+ "once_cell",
583
+ "rustix",
584
+ "windows-sys 0.60.2",
585
+ ]
586
+
621
587
  [[package]]
622
588
  name = "termtree"
623
589
  version = "0.5.1"
@@ -656,9 +622,9 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
656
622
 
657
623
  [[package]]
658
624
  name = "value-trait"
659
- version = "0.8.1"
625
+ version = "0.12.1"
660
626
  source = "registry+https://github.com/rust-lang/crates.io-index"
661
- checksum = "dad8db98c1e677797df21ba03fca7d3bf9bec3ca38db930954e4fe6e1ea27eb4"
627
+ checksum = "8e80f0c733af0720a501b3905d22e2f97662d8eacfe082a75ed7ffb5ab08cb59"
662
628
  dependencies = [
663
629
  "float-cmp",
664
630
  "halfbrown",
@@ -666,12 +632,6 @@ dependencies = [
666
632
  "ryu",
667
633
  ]
668
634
 
669
- [[package]]
670
- name = "version_check"
671
- version = "0.9.5"
672
- source = "registry+https://github.com/rust-lang/crates.io-index"
673
- checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
674
-
675
635
  [[package]]
676
636
  name = "wait-timeout"
677
637
  version = "0.2.1"
@@ -682,68 +642,12 @@ dependencies = [
682
642
  ]
683
643
 
684
644
  [[package]]
685
- name = "wasi"
686
- version = "0.11.1+wasi-snapshot-preview1"
687
- source = "registry+https://github.com/rust-lang/crates.io-index"
688
- checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
689
-
690
- [[package]]
691
- name = "wasm-bindgen"
692
- version = "0.2.104"
645
+ name = "wasip2"
646
+ version = "1.0.1+wasi-0.2.4"
693
647
  source = "registry+https://github.com/rust-lang/crates.io-index"
694
- checksum = "c1da10c01ae9f1ae40cbfac0bac3b1e724b320abfcf52229f80b547c0d250e2d"
648
+ checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7"
695
649
  dependencies = [
696
- "cfg-if",
697
- "once_cell",
698
- "rustversion",
699
- "wasm-bindgen-macro",
700
- "wasm-bindgen-shared",
701
- ]
702
-
703
- [[package]]
704
- name = "wasm-bindgen-backend"
705
- version = "0.2.104"
706
- source = "registry+https://github.com/rust-lang/crates.io-index"
707
- checksum = "671c9a5a66f49d8a47345ab942e2cb93c7d1d0339065d4f8139c486121b43b19"
708
- dependencies = [
709
- "bumpalo",
710
- "log",
711
- "proc-macro2",
712
- "quote",
713
- "syn",
714
- "wasm-bindgen-shared",
715
- ]
716
-
717
- [[package]]
718
- name = "wasm-bindgen-macro"
719
- version = "0.2.104"
720
- source = "registry+https://github.com/rust-lang/crates.io-index"
721
- checksum = "7ca60477e4c59f5f2986c50191cd972e3a50d8a95603bc9434501cf156a9a119"
722
- dependencies = [
723
- "quote",
724
- "wasm-bindgen-macro-support",
725
- ]
726
-
727
- [[package]]
728
- name = "wasm-bindgen-macro-support"
729
- version = "0.2.104"
730
- source = "registry+https://github.com/rust-lang/crates.io-index"
731
- checksum = "9f07d2f20d4da7b26400c9f4a0511e6e0345b040694e8a75bd41d578fa4421d7"
732
- dependencies = [
733
- "proc-macro2",
734
- "quote",
735
- "syn",
736
- "wasm-bindgen-backend",
737
- "wasm-bindgen-shared",
738
- ]
739
-
740
- [[package]]
741
- name = "wasm-bindgen-shared"
742
- version = "0.2.104"
743
- source = "registry+https://github.com/rust-lang/crates.io-index"
744
- checksum = "bad67dc8b2a1a6e5448428adec4c3e84c43e561d8c9ee8a9e5aabeb193ec41d1"
745
- dependencies = [
746
- "unicode-ident",
650
+ "wit-bindgen",
747
651
  ]
748
652
 
749
653
  [[package]]
@@ -899,6 +803,12 @@ version = "0.53.1"
899
803
  source = "registry+https://github.com/rust-lang/crates.io-index"
900
804
  checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
901
805
 
806
+ [[package]]
807
+ name = "wit-bindgen"
808
+ version = "0.46.0"
809
+ source = "registry+https://github.com/rust-lang/crates.io-index"
810
+ checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
811
+
902
812
  [[package]]
903
813
  name = "zerocopy"
904
814
  version = "0.8.27"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "headson"
3
- version = "0.2.3"
3
+ version = "0.2.5"
4
4
  edition = "2024"
5
5
  description = "Budget‑constrained JSON preview renderer"
6
6
  readme = "README.md"
@@ -24,15 +24,16 @@ clap = { version = "4.5.49", features = ["derive"] }
24
24
  serde = { version = "1.0.228", features = ["derive"] }
25
25
  serde_json = "1.0.145"
26
26
  unicode-segmentation = "1.12.0"
27
- simd-json = { version = "0.13", features = ["serde_impl"] }
27
+ simd-json = { version = "0.17", features = ["serde_impl"] }
28
+ content_inspector = "0.2"
28
29
 
29
30
  [dev-dependencies]
30
31
  insta = "1.40.0"
31
32
  assert_cmd = "2"
32
33
  test_each_file = "0.3"
33
- fake = "2"
34
- rand = "0.8"
35
- rand_chacha = "0.3"
34
+ rand = "0.9"
35
+ rand_chacha = "0.9"
36
+ tempfile = "3"
36
37
 
37
38
  [profile.release]
38
39
  # Prioritize runtime speed for large inputs
@@ -92,3 +93,6 @@ implicit_hasher = "deny"
92
93
  uninlined_format_args = "deny"
93
94
  float_cmp = "deny"
94
95
  float_cmp_const = "deny"
96
+
97
+ [lints.rust]
98
+ dead_code = "warn"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: headson
3
- Version: 0.2.3
3
+ Version: 0.2.5
4
4
  Classifier: Programming Language :: Python
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Rust
@@ -52,6 +52,7 @@ Notes:
52
52
  - JSON template outputs a single JSON object keyed by the input file paths.
53
53
  - Pseudo and JS templates render file sections with human-readable headers.
54
54
  - Using `--global-budget` may truncate or omit entire files to respect the total budget.
55
+ - When passing file paths, directories and binary files are ignored; a notice is printed to stderr for each (e.g., `Ignored binary file: ./path/to/file`). Stdin mode reads the stream as-is.
55
56
 
56
57
  Examples:
57
58
 
@@ -37,6 +37,7 @@ Notes:
37
37
  - JSON template outputs a single JSON object keyed by the input file paths.
38
38
  - Pseudo and JS templates render file sections with human-readable headers.
39
39
  - Using `--global-budget` may truncate or omit entire files to respect the total budget.
40
+ - When passing file paths, directories and binary files are ignored; a notice is printed to stderr for each (e.g., `Ignored binary file: ./path/to/file`). Stdin mode reads the stream as-is.
40
41
 
41
42
  Examples:
42
43
 
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "headson"
7
- version = "0.2.3"
7
+ version = "0.2.5"
8
8
  description = "Budget‑constrained JSON preview renderer (Python bindings)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"