decasify 0.7.1__tar.gz → 0.7.3__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.
@@ -86,9 +86,9 @@ dependencies = [
86
86
 
87
87
  [[package]]
88
88
  name = "anyhow"
89
- version = "1.0.89"
89
+ version = "1.0.90"
90
90
  source = "registry+https://github.com/rust-lang/crates.io-index"
91
- checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6"
91
+ checksum = "37bf3594c4c988a53154954629820791dde498571819ae4ca50ca811e060cc95"
92
92
 
93
93
  [[package]]
94
94
  name = "arc-swap"
@@ -175,9 +175,9 @@ dependencies = [
175
175
 
176
176
  [[package]]
177
177
  name = "cc"
178
- version = "1.1.30"
178
+ version = "1.1.31"
179
179
  source = "registry+https://github.com/rust-lang/crates.io-index"
180
- checksum = "b16803a61b81d9eabb7eae2588776c4c1e584b738ede45fdbb4c972cec1e9945"
180
+ checksum = "c2e7962b54006dcfcc61cb72735f4d89bb97061dd6a7ed882ec6b8ee53714c6f"
181
181
  dependencies = [
182
182
  "shlex",
183
183
  ]
@@ -269,10 +269,46 @@ dependencies = [
269
269
  "cfg-if",
270
270
  ]
271
271
 
272
+ [[package]]
273
+ name = "darling"
274
+ version = "0.20.10"
275
+ source = "registry+https://github.com/rust-lang/crates.io-index"
276
+ checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989"
277
+ dependencies = [
278
+ "darling_core",
279
+ "darling_macro",
280
+ ]
281
+
282
+ [[package]]
283
+ name = "darling_core"
284
+ version = "0.20.10"
285
+ source = "registry+https://github.com/rust-lang/crates.io-index"
286
+ checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5"
287
+ dependencies = [
288
+ "fnv",
289
+ "ident_case",
290
+ "proc-macro2",
291
+ "quote",
292
+ "strsim",
293
+ "syn",
294
+ ]
295
+
296
+ [[package]]
297
+ name = "darling_macro"
298
+ version = "0.20.10"
299
+ source = "registry+https://github.com/rust-lang/crates.io-index"
300
+ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806"
301
+ dependencies = [
302
+ "darling_core",
303
+ "quote",
304
+ "syn",
305
+ ]
306
+
272
307
  [[package]]
273
308
  name = "decasify"
274
- version = "0.7.1"
309
+ version = "0.7.3"
275
310
  dependencies = [
311
+ "anyhow",
276
312
  "assert_cmd",
277
313
  "clap",
278
314
  "clap_complete",
@@ -285,7 +321,7 @@ dependencies = [
285
321
  "strum_macros",
286
322
  "titlecase",
287
323
  "unicode_titlecase",
288
- "vergen",
324
+ "vergen-gix",
289
325
  "wasm-bindgen",
290
326
  ]
291
327
 
@@ -298,6 +334,37 @@ dependencies = [
298
334
  "powerfmt",
299
335
  ]
300
336
 
337
+ [[package]]
338
+ name = "derive_builder"
339
+ version = "0.20.2"
340
+ source = "registry+https://github.com/rust-lang/crates.io-index"
341
+ checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947"
342
+ dependencies = [
343
+ "derive_builder_macro",
344
+ ]
345
+
346
+ [[package]]
347
+ name = "derive_builder_core"
348
+ version = "0.20.2"
349
+ source = "registry+https://github.com/rust-lang/crates.io-index"
350
+ checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8"
351
+ dependencies = [
352
+ "darling",
353
+ "proc-macro2",
354
+ "quote",
355
+ "syn",
356
+ ]
357
+
358
+ [[package]]
359
+ name = "derive_builder_macro"
360
+ version = "0.20.2"
361
+ source = "registry+https://github.com/rust-lang/crates.io-index"
362
+ checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c"
363
+ dependencies = [
364
+ "derive_builder_core",
365
+ "syn",
366
+ ]
367
+
301
368
  [[package]]
302
369
  name = "difflib"
303
370
  version = "0.4.0"
@@ -386,9 +453,9 @@ dependencies = [
386
453
 
387
454
  [[package]]
388
455
  name = "gix"
389
- version = "0.63.0"
456
+ version = "0.66.0"
390
457
  source = "registry+https://github.com/rust-lang/crates.io-index"
391
- checksum = "984c5018adfa7a4536ade67990b3ebc6e11ab57b3d6cd9968de0947ca99b4b06"
458
+ checksum = "9048b8d1ae2104f045cb37e5c450fc49d5d8af22609386bfc739c11ba88995eb"
392
459
  dependencies = [
393
460
  "gix-actor",
394
461
  "gix-commitgraph",
@@ -403,7 +470,6 @@ dependencies = [
403
470
  "gix-hashtable",
404
471
  "gix-index",
405
472
  "gix-lock",
406
- "gix-macros",
407
473
  "gix-object",
408
474
  "gix-odb",
409
475
  "gix-pack",
@@ -428,9 +494,9 @@ dependencies = [
428
494
 
429
495
  [[package]]
430
496
  name = "gix-actor"
431
- version = "0.31.5"
497
+ version = "0.32.0"
432
498
  source = "registry+https://github.com/rust-lang/crates.io-index"
433
- checksum = "a0e454357e34b833cc3a00b6efbbd3dd4d18b24b9fb0c023876ec2645e8aa3f2"
499
+ checksum = "fc19e312cd45c4a66cd003f909163dc2f8e1623e30a0c0c6df3776e89b308665"
434
500
  dependencies = [
435
501
  "bstr",
436
502
  "gix-date",
@@ -474,9 +540,9 @@ dependencies = [
474
540
 
475
541
  [[package]]
476
542
  name = "gix-config"
477
- version = "0.37.0"
543
+ version = "0.40.0"
478
544
  source = "registry+https://github.com/rust-lang/crates.io-index"
479
- checksum = "53fafe42957e11d98e354a66b6bd70aeea00faf2f62dd11164188224a507c840"
545
+ checksum = "78e797487e6ca3552491de1131b4f72202f282fb33f198b1c34406d765b42bb0"
480
546
  dependencies = [
481
547
  "bstr",
482
548
  "gix-config-value",
@@ -508,21 +574,21 @@ dependencies = [
508
574
 
509
575
  [[package]]
510
576
  name = "gix-date"
511
- version = "0.8.7"
577
+ version = "0.9.0"
512
578
  source = "registry+https://github.com/rust-lang/crates.io-index"
513
- checksum = "9eed6931f21491ee0aeb922751bd7ec97b4b2fe8fbfedcb678e2a2dce5f3b8c0"
579
+ checksum = "35c84b7af01e68daf7a6bb8bb909c1ff5edb3ce4326f1f43063a5a96d3c3c8a5"
514
580
  dependencies = [
515
581
  "bstr",
516
582
  "itoa",
583
+ "jiff",
517
584
  "thiserror",
518
- "time",
519
585
  ]
520
586
 
521
587
  [[package]]
522
588
  name = "gix-diff"
523
- version = "0.44.1"
589
+ version = "0.46.0"
524
590
  source = "registry+https://github.com/rust-lang/crates.io-index"
525
- checksum = "1996d5c8a305b59709467d80617c9fde48d9d75fd1f4179ea970912630886c9d"
591
+ checksum = "92c9afd80fff00f8b38b1c1928442feb4cd6d2232a6ed806b6b193151a3d336c"
526
592
  dependencies = [
527
593
  "bstr",
528
594
  "gix-hash",
@@ -532,9 +598,9 @@ dependencies = [
532
598
 
533
599
  [[package]]
534
600
  name = "gix-discover"
535
- version = "0.32.0"
601
+ version = "0.35.0"
536
602
  source = "registry+https://github.com/rust-lang/crates.io-index"
537
- checksum = "fc27c699b63da66b50d50c00668bc0b7e90c3a382ef302865e891559935f3dbf"
603
+ checksum = "0577366b9567376bc26e815fd74451ebd0e6218814e242f8e5b7072c58d956d2"
538
604
  dependencies = [
539
605
  "bstr",
540
606
  "dunce",
@@ -611,9 +677,9 @@ dependencies = [
611
677
 
612
678
  [[package]]
613
679
  name = "gix-index"
614
- version = "0.33.1"
680
+ version = "0.35.0"
615
681
  source = "registry+https://github.com/rust-lang/crates.io-index"
616
- checksum = "9a9a44eb55bd84bb48f8a44980e951968ced21e171b22d115d1cdcef82a7d73f"
682
+ checksum = "0cd4203244444017682176e65fd0180be9298e58ed90bd4a8489a357795ed22d"
617
683
  dependencies = [
618
684
  "bitflags",
619
685
  "bstr",
@@ -648,22 +714,11 @@ dependencies = [
648
714
  "thiserror",
649
715
  ]
650
716
 
651
- [[package]]
652
- name = "gix-macros"
653
- version = "0.1.5"
654
- source = "registry+https://github.com/rust-lang/crates.io-index"
655
- checksum = "999ce923619f88194171a67fb3e6d613653b8d4d6078b529b15a765da0edcc17"
656
- dependencies = [
657
- "proc-macro2",
658
- "quote",
659
- "syn",
660
- ]
661
-
662
717
  [[package]]
663
718
  name = "gix-object"
664
- version = "0.42.3"
719
+ version = "0.44.0"
665
720
  source = "registry+https://github.com/rust-lang/crates.io-index"
666
- checksum = "25da2f46b4e7c2fa7b413ce4dffb87f69eaf89c2057e386491f4c55cadbfe386"
721
+ checksum = "2f5b801834f1de7640731820c2df6ba88d95480dc4ab166a5882f8ff12b88efa"
667
722
  dependencies = [
668
723
  "bstr",
669
724
  "gix-actor",
@@ -680,9 +735,9 @@ dependencies = [
680
735
 
681
736
  [[package]]
682
737
  name = "gix-odb"
683
- version = "0.61.1"
738
+ version = "0.63.0"
684
739
  source = "registry+https://github.com/rust-lang/crates.io-index"
685
- checksum = "20d384fe541d93d8a3bb7d5d5ef210780d6df4f50c4e684ccba32665a5e3bc9b"
740
+ checksum = "a3158068701c17df54f0ab2adda527f5a6aca38fd5fd80ceb7e3c0a2717ec747"
686
741
  dependencies = [
687
742
  "arc-swap",
688
743
  "gix-date",
@@ -700,9 +755,9 @@ dependencies = [
700
755
 
701
756
  [[package]]
702
757
  name = "gix-pack"
703
- version = "0.51.1"
758
+ version = "0.53.0"
704
759
  source = "registry+https://github.com/rust-lang/crates.io-index"
705
- checksum = "3e0594491fffe55df94ba1c111a6566b7f56b3f8d2e1efc750e77d572f5f5229"
760
+ checksum = "3223aa342eee21e1e0e403cad8ae9caf9edca55ef84c347738d10681676fd954"
706
761
  dependencies = [
707
762
  "clru",
708
763
  "gix-chunk",
@@ -742,12 +797,11 @@ dependencies = [
742
797
 
743
798
  [[package]]
744
799
  name = "gix-ref"
745
- version = "0.44.1"
800
+ version = "0.47.0"
746
801
  source = "registry+https://github.com/rust-lang/crates.io-index"
747
- checksum = "3394a2997e5bc6b22ebc1e1a87b41eeefbcfcff3dbfa7c4bd73cb0ac8f1f3e2e"
802
+ checksum = "ae0d8406ebf9aaa91f55a57f053c5a1ad1a39f60fdf0303142b7be7ea44311e5"
748
803
  dependencies = [
749
804
  "gix-actor",
750
- "gix-date",
751
805
  "gix-features",
752
806
  "gix-fs",
753
807
  "gix-hash",
@@ -764,9 +818,9 @@ dependencies = [
764
818
 
765
819
  [[package]]
766
820
  name = "gix-refspec"
767
- version = "0.23.1"
821
+ version = "0.25.0"
768
822
  source = "registry+https://github.com/rust-lang/crates.io-index"
769
- checksum = "6868f8cd2e62555d1f7c78b784bece43ace40dd2a462daf3b588d5416e603f37"
823
+ checksum = "ebb005f82341ba67615ffdd9f7742c87787544441c88090878393d0682869ca6"
770
824
  dependencies = [
771
825
  "bstr",
772
826
  "gix-hash",
@@ -778,9 +832,9 @@ dependencies = [
778
832
 
779
833
  [[package]]
780
834
  name = "gix-revision"
781
- version = "0.27.2"
835
+ version = "0.29.0"
782
836
  source = "registry+https://github.com/rust-lang/crates.io-index"
783
- checksum = "01b13e43c2118c4b0537ddac7d0821ae0dfa90b7b8dbf20c711e153fb749adce"
837
+ checksum = "ba4621b219ac0cdb9256883030c3d56a6c64a6deaa829a92da73b9a576825e1e"
784
838
  dependencies = [
785
839
  "bstr",
786
840
  "gix-date",
@@ -794,9 +848,9 @@ dependencies = [
794
848
 
795
849
  [[package]]
796
850
  name = "gix-revwalk"
797
- version = "0.13.2"
851
+ version = "0.15.0"
798
852
  source = "registry+https://github.com/rust-lang/crates.io-index"
799
- checksum = "1b030ccaab71af141f537e0225f19b9e74f25fefdba0372246b844491cab43e0"
853
+ checksum = "b41e72544b93084ee682ef3d5b31b1ba4d8fa27a017482900e5e044d5b1b3984"
800
854
  dependencies = [
801
855
  "gix-commitgraph",
802
856
  "gix-date",
@@ -842,9 +896,9 @@ checksum = "6cae0e8661c3ff92688ce1c8b8058b3efb312aba9492bbe93661a21705ab431b"
842
896
 
843
897
  [[package]]
844
898
  name = "gix-traverse"
845
- version = "0.39.2"
899
+ version = "0.41.0"
846
900
  source = "registry+https://github.com/rust-lang/crates.io-index"
847
- checksum = "e499a18c511e71cf4a20413b743b9f5bcf64b3d9e81e9c3c6cd399eae55a8840"
901
+ checksum = "030da39af94e4df35472e9318228f36530989327906f38e27807df305fccb780"
848
902
  dependencies = [
849
903
  "bitflags",
850
904
  "gix-commitgraph",
@@ -883,9 +937,9 @@ dependencies = [
883
937
 
884
938
  [[package]]
885
939
  name = "gix-validate"
886
- version = "0.8.5"
940
+ version = "0.9.0"
887
941
  source = "registry+https://github.com/rust-lang/crates.io-index"
888
- checksum = "82c27dd34a49b1addf193c92070bcbf3beaf6e10f16a78544de6372e146a0acf"
942
+ checksum = "81f2badbb64e57b404593ee26b752c26991910fd0d81fe6f9a71c1a8309b6c86"
889
943
  dependencies = [
890
944
  "bstr",
891
945
  "thiserror",
@@ -916,6 +970,12 @@ dependencies = [
916
970
  "windows-sys 0.52.0",
917
971
  ]
918
972
 
973
+ [[package]]
974
+ name = "ident_case"
975
+ version = "1.0.1"
976
+ source = "registry+https://github.com/rust-lang/crates.io-index"
977
+ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
978
+
919
979
  [[package]]
920
980
  name = "idna"
921
981
  version = "0.5.0"
@@ -944,11 +1004,36 @@ version = "1.0.11"
944
1004
  source = "registry+https://github.com/rust-lang/crates.io-index"
945
1005
  checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
946
1006
 
1007
+ [[package]]
1008
+ name = "jiff"
1009
+ version = "0.1.13"
1010
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1011
+ checksum = "8a45489186a6123c128fdf6016183fcfab7113e1820eb813127e036e287233fb"
1012
+ dependencies = [
1013
+ "jiff-tzdb-platform",
1014
+ "windows-sys 0.59.0",
1015
+ ]
1016
+
1017
+ [[package]]
1018
+ name = "jiff-tzdb"
1019
+ version = "0.1.1"
1020
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1021
+ checksum = "91335e575850c5c4c673b9bd467b0e025f164ca59d0564f69d0c2ee0ffad4653"
1022
+
1023
+ [[package]]
1024
+ name = "jiff-tzdb-platform"
1025
+ version = "0.1.1"
1026
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1027
+ checksum = "9835f0060a626fe59f160437bc725491a6af23133ea906500027d1bd2f8f4329"
1028
+ dependencies = [
1029
+ "jiff-tzdb",
1030
+ ]
1031
+
947
1032
  [[package]]
948
1033
  name = "libc"
949
- version = "0.2.160"
1034
+ version = "0.2.161"
950
1035
  source = "registry+https://github.com/rust-lang/crates.io-index"
951
- checksum = "f0b21006cd1874ae9e650973c565615676dc4a274c965bb0a73796dac838ce4f"
1036
+ checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1"
952
1037
 
953
1038
  [[package]]
954
1039
  name = "libredox"
@@ -1302,6 +1387,15 @@ version = "2.0.0"
1302
1387
  source = "registry+https://github.com/rust-lang/crates.io-index"
1303
1388
  checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152"
1304
1389
 
1390
+ [[package]]
1391
+ name = "rustc_version"
1392
+ version = "0.4.1"
1393
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1394
+ checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
1395
+ dependencies = [
1396
+ "semver",
1397
+ ]
1398
+
1305
1399
  [[package]]
1306
1400
  name = "rustix"
1307
1401
  version = "0.38.37"
@@ -1373,9 +1467,9 @@ dependencies = [
1373
1467
 
1374
1468
  [[package]]
1375
1469
  name = "serde_json"
1376
- version = "1.0.128"
1470
+ version = "1.0.132"
1377
1471
  source = "registry+https://github.com/rust-lang/crates.io-index"
1378
- checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8"
1472
+ checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03"
1379
1473
  dependencies = [
1380
1474
  "itoa",
1381
1475
  "memchr",
@@ -1447,9 +1541,9 @@ dependencies = [
1447
1541
 
1448
1542
  [[package]]
1449
1543
  name = "syn"
1450
- version = "2.0.79"
1544
+ version = "2.0.82"
1451
1545
  source = "registry+https://github.com/rust-lang/crates.io-index"
1452
- checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590"
1546
+ checksum = "83540f837a8afc019423a8edb95b52a8effe46957ee402287f4292fae35be021"
1453
1547
  dependencies = [
1454
1548
  "proc-macro2",
1455
1549
  "quote",
@@ -1626,17 +1720,44 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
1626
1720
 
1627
1721
  [[package]]
1628
1722
  name = "vergen"
1629
- version = "8.3.2"
1723
+ version = "9.0.1"
1630
1724
  source = "registry+https://github.com/rust-lang/crates.io-index"
1631
- checksum = "2990d9ea5967266ea0ccf413a4aa5c42a93dbcfda9cb49a97de6931726b12566"
1725
+ checksum = "349ed9e45296a581f455bc18039878f409992999bc1d5da12a6800eb18c8752f"
1632
1726
  dependencies = [
1633
1727
  "anyhow",
1634
1728
  "cargo_metadata",
1635
- "cfg-if",
1636
- "gix",
1729
+ "derive_builder",
1637
1730
  "regex",
1731
+ "rustc_version",
1732
+ "rustversion",
1733
+ "time",
1734
+ "vergen-lib",
1735
+ ]
1736
+
1737
+ [[package]]
1738
+ name = "vergen-gix"
1739
+ version = "1.0.2"
1740
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1741
+ checksum = "02ef5d49e57c96e025770171c1c7ee0e30cd6f712f21a1fe501a58be6d069192"
1742
+ dependencies = [
1743
+ "anyhow",
1744
+ "derive_builder",
1745
+ "gix",
1638
1746
  "rustversion",
1639
1747
  "time",
1748
+ "vergen",
1749
+ "vergen-lib",
1750
+ ]
1751
+
1752
+ [[package]]
1753
+ name = "vergen-lib"
1754
+ version = "0.1.4"
1755
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1756
+ checksum = "229eaddb0050920816cf051e619affaf18caa3dd512de8de5839ccbc8e53abb0"
1757
+ dependencies = [
1758
+ "anyhow",
1759
+ "derive_builder",
1760
+ "rustversion",
1640
1761
  ]
1641
1762
 
1642
1763
  [[package]]
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "decasify"
3
- version = "0.7.1"
3
+ version = "0.7.3"
4
4
  authors = ["Caleb Maclennan <caleb@alerque.com>"]
5
5
  edition = "2021"
6
6
  rust-version = "1.73.0"
@@ -89,10 +89,13 @@ strum_macros = "0.26"
89
89
  optional = true
90
90
  features = ["derive"]
91
91
 
92
- [build-dependencies.vergen]
93
- version = "8.3"
92
+ [build-dependencies.anyhow]
93
+ version = "1.0"
94
+
95
+ [build-dependencies.vergen-gix]
96
+ version = "1.0"
94
97
  default-features = false
95
- features = ["build", "cargo", "git", "gitoxide"]
98
+ features = [ "build", "cargo", "rustc" ]
96
99
 
97
100
  [dev-dependencies]
98
101
  assert_cmd = "2.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: decasify
3
- Version: 0.7.1
3
+ Version: 0.7.3
4
4
  Classifier: Development Status :: 5 - Production/Stable
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: Natural Language :: English
@@ -33,10 +33,13 @@ Project-URL: Source Code, https://github.com/alerque/decasify
33
33
  [![PyPi (latest)](https://img.shields.io/pypi/v/decasify?logo=python&color=blue)](https://pypi.org/project/decasify)
34
34
  [![NPM Version](https://img.shields.io/npm/v/decasify?logo=npm&color=blue)](https://www.npmjs.com/package/decasify)
35
35
 
36
- A CLI utility, Rust crate, Lua Rock, Python module, JavaScript module, and Neovim plugin to cast strings to title-case (and other cases) according to locale specific style guides including Turkish support.
36
+ A CLI utility, Rust crate, Lua rock, Python module, JavaScript module, and Neovim plugin to cast strings to title-case (and other cases) according to locale specific style guides including Turkish support.
37
37
 
38
- This project was born out of frustration with ALL CAPS TITLES in Markdown that no tooling seemed to properly support casting to title-cased strings, particularly coming from Turkish.
39
- Many tools can handle casing single words, some programmer specific tools can recaseing tokens and identifiers, and yet a few others can handle *English* strings, but nothing seemed to be out there for changing the case of full Turkish strings.
38
+ This project was born out of frustration with authors and editors leaving ALL CAPS TITLES in Markdown sources.
39
+ No tooling I could find properly supported casting these to title-cased strings (which are more versatile for typesetting purposes).
40
+ The problem was doubly hard because most of my work is adjacent to Turkish, and even less tooling was available and has special issues with case conversions.
41
+ Many tools can handle casing single words, some programmer specific tools handle re-casing tokens and identifiers, and yet a few others can handle *English* strings.
42
+ But *nothing* seemed to be out there for changing the case of Turkish prose.
40
43
 
41
44
  The CLI defaults to titlecase and English, but lower, upper, and sentence case options are also available.
42
45
  The Rust, Lua, Python, and JavaScript library APIs have functions specific to each operation.
@@ -208,7 +211,7 @@ console.log(output)
208
211
 
209
212
  ## Use as a Neovim plugin
210
213
 
211
- * Using [rocks.nvim](https://github.com/nvim-neorocks/rocks.nvim), simply run `:Rocks install decasify.nvim dev`.
214
+ * Using [rocks.nvim](https://github.com/nvim-neorocks/rocks.nvim), simply run `:Rocks install decasify.nvim`.
212
215
 
213
216
  * Using [lazy.nvim](https://lazy.folke.io/), simply add `{ "alerque/decasify" }`
214
217
 
@@ -11,10 +11,13 @@
11
11
  [![PyPi (latest)](https://img.shields.io/pypi/v/decasify?logo=python&color=blue)](https://pypi.org/project/decasify)
12
12
  [![NPM Version](https://img.shields.io/npm/v/decasify?logo=npm&color=blue)](https://www.npmjs.com/package/decasify)
13
13
 
14
- A CLI utility, Rust crate, Lua Rock, Python module, JavaScript module, and Neovim plugin to cast strings to title-case (and other cases) according to locale specific style guides including Turkish support.
14
+ A CLI utility, Rust crate, Lua rock, Python module, JavaScript module, and Neovim plugin to cast strings to title-case (and other cases) according to locale specific style guides including Turkish support.
15
15
 
16
- This project was born out of frustration with ALL CAPS TITLES in Markdown that no tooling seemed to properly support casting to title-cased strings, particularly coming from Turkish.
17
- Many tools can handle casing single words, some programmer specific tools can recaseing tokens and identifiers, and yet a few others can handle *English* strings, but nothing seemed to be out there for changing the case of full Turkish strings.
16
+ This project was born out of frustration with authors and editors leaving ALL CAPS TITLES in Markdown sources.
17
+ No tooling I could find properly supported casting these to title-cased strings (which are more versatile for typesetting purposes).
18
+ The problem was doubly hard because most of my work is adjacent to Turkish, and even less tooling was available and has special issues with case conversions.
19
+ Many tools can handle casing single words, some programmer specific tools handle re-casing tokens and identifiers, and yet a few others can handle *English* strings.
20
+ But *nothing* seemed to be out there for changing the case of Turkish prose.
18
21
 
19
22
  The CLI defaults to titlecase and English, but lower, upper, and sentence case options are also available.
20
23
  The Rust, Lua, Python, and JavaScript library APIs have functions specific to each operation.
@@ -186,7 +189,7 @@ console.log(output)
186
189
 
187
190
  ## Use as a Neovim plugin
188
191
 
189
- * Using [rocks.nvim](https://github.com/nvim-neorocks/rocks.nvim), simply run `:Rocks install decasify.nvim dev`.
192
+ * Using [rocks.nvim](https://github.com/nvim-neorocks/rocks.nvim), simply run `:Rocks install decasify.nvim`.
190
193
 
191
194
  * Using [lazy.nvim](https://lazy.folke.io/), simply add `{ "alerque/decasify" }`
192
195
 
@@ -3,6 +3,11 @@
3
3
 
4
4
  #[cfg(feature = "manpage")]
5
5
  use clap_mangen::Man;
6
+ use {
7
+ anyhow::Result as AnyhowResult,
8
+ std::env,
9
+ vergen_gix::{CargoBuilder, Emitter, GixBuilder, RustcBuilder},
10
+ };
6
11
  #[cfg(feature = "completions")]
7
12
  use {
8
13
  clap::CommandFactory,
@@ -10,7 +15,6 @@ use {
10
15
  clap_complete::shells::{Bash, Elvish, Fish, PowerShell, Zsh},
11
16
  std::{fs, path::Path},
12
17
  };
13
- use {std::env, vergen::EmitBuilder};
14
18
 
15
19
  #[cfg(feature = "completions")]
16
20
  include!("../src/types.rs");
@@ -18,7 +22,7 @@ include!("../src/types.rs");
18
22
  #[cfg(feature = "completions")]
19
23
  include!("../src/cli.rs");
20
24
 
21
- fn main() {
25
+ fn main() -> AnyhowResult<()> {
22
26
  println!("cargo:rustc-cfg=build");
23
27
  println!("cargo:rustc-check-cfg=cfg(build)");
24
28
  if let Ok(val) = env::var("AUTOTOOLS_DEPENDENCIES") {
@@ -26,18 +30,21 @@ fn main() {
26
30
  println!("cargo:rerun-if-changed={dependency}");
27
31
  }
28
32
  }
29
- let mut builder = EmitBuilder::builder();
33
+ let mut builder = Emitter::default();
34
+ builder.add_instructions(&CargoBuilder::all_cargo()?)?;
30
35
  // If passed a version from automake, use that instead of vergen's formatting
31
36
  if let Ok(val) = env::var("VERSION_FROM_AUTOTOOLS") {
32
- println!("cargo:rustc-env=VERGEN_GIT_DESCRIBE={val}")
37
+ println!("cargo:rustc-env=VERGEN_GIT_DESCRIBE={val}");
38
+ builder.add_instructions(&RustcBuilder::all_rustc()?)?;
33
39
  } else {
34
- builder = *builder.git_describe(true, true, None);
40
+ builder.add_instructions(&GixBuilder::all_git()?)?;
35
41
  };
36
- builder.emit().expect("Unable to generate the cargo keys!");
42
+ builder.emit()?;
37
43
  #[cfg(feature = "manpage")]
38
44
  generate_manpage();
39
45
  #[cfg(feature = "completions")]
40
46
  generate_shell_completions();
47
+ Ok(())
41
48
  }
42
49
 
43
50
  /// Generate man page
@@ -16,6 +16,8 @@ fn decasify(module: &Bound<'_, PyModule>) -> PyResult<()> {
16
16
  module.add_function(wrap_pyfunction!(py_lowercase, module)?)?;
17
17
  module.add_function(wrap_pyfunction!(py_uppercase, module)?)?;
18
18
  module.add_function(wrap_pyfunction!(py_sentencecase, module)?)?;
19
+ let version = option_env!("VERGEN_GIT_DESCRIBE").unwrap_or_else(|| env!("CARGO_PKG_VERSION"));
20
+ module.add::<&str, &str>("version", version)?;
19
21
  Ok(())
20
22
  }
21
23
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes