decasify 0.7.5__tar.gz → 0.8.0__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.
- {decasify-0.7.5 → decasify-0.8.0}/Cargo.lock +89 -60
- {decasify-0.7.5 → decasify-0.8.0}/Cargo.toml +16 -9
- {decasify-0.7.5 → decasify-0.8.0}/PKG-INFO +19 -32
- {decasify-0.7.5 → decasify-0.8.0}/README.md +18 -31
- {decasify-0.7.5 → decasify-0.8.0}/build-aux/build.rs +3 -0
- decasify-0.8.0/src/bin/decasify.rs +88 -0
- decasify-0.8.0/src/cli.rs +56 -0
- {decasify-0.7.5 → decasify-0.8.0}/src/content.rs +21 -4
- decasify-0.8.0/src/en.rs +111 -0
- decasify-0.8.0/src/lib.rs +97 -0
- decasify-0.8.0/src/lua.rs +77 -0
- decasify-0.8.0/src/python.rs +50 -0
- decasify-0.8.0/src/tr.rs +82 -0
- decasify-0.8.0/src/traits.rs +119 -0
- {decasify-0.7.5 → decasify-0.8.0}/src/types.rs +64 -14
- {decasify-0.7.5 → decasify-0.8.0}/src/wasm.rs +6 -7
- decasify-0.8.0/tests/lib.rs +253 -0
- decasify-0.7.5/src/bin/decasify.rs +0 -55
- decasify-0.7.5/src/cli.rs +0 -37
- decasify-0.7.5/src/lib.rs +0 -500
- decasify-0.7.5/src/lua.rs +0 -109
- decasify-0.7.5/src/python.rs +0 -57
- {decasify-0.7.5 → decasify-0.8.0}/pyproject.toml +0 -0
- {decasify-0.7.5 → decasify-0.8.0}/tests/cli.rs +0 -0
|
@@ -37,9 +37,9 @@ checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f"
|
|
|
37
37
|
|
|
38
38
|
[[package]]
|
|
39
39
|
name = "anstream"
|
|
40
|
-
version = "0.6.
|
|
40
|
+
version = "0.6.17"
|
|
41
41
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
42
|
-
checksum = "
|
|
42
|
+
checksum = "23a1e53f0f5d86382dafe1cf314783b2044280f406e7e1506368220ad11b1338"
|
|
43
43
|
dependencies = [
|
|
44
44
|
"anstyle",
|
|
45
45
|
"anstyle-parse",
|
|
@@ -52,43 +52,43 @@ dependencies = [
|
|
|
52
52
|
|
|
53
53
|
[[package]]
|
|
54
54
|
name = "anstyle"
|
|
55
|
-
version = "1.0.
|
|
55
|
+
version = "1.0.9"
|
|
56
56
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
57
|
-
checksum = "
|
|
57
|
+
checksum = "8365de52b16c035ff4fcafe0092ba9390540e3e352870ac09933bebcaa2c8c56"
|
|
58
58
|
|
|
59
59
|
[[package]]
|
|
60
60
|
name = "anstyle-parse"
|
|
61
|
-
version = "0.2.
|
|
61
|
+
version = "0.2.6"
|
|
62
62
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
63
|
-
checksum = "
|
|
63
|
+
checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
|
|
64
64
|
dependencies = [
|
|
65
65
|
"utf8parse",
|
|
66
66
|
]
|
|
67
67
|
|
|
68
68
|
[[package]]
|
|
69
69
|
name = "anstyle-query"
|
|
70
|
-
version = "1.1.
|
|
70
|
+
version = "1.1.2"
|
|
71
71
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
72
|
-
checksum = "
|
|
72
|
+
checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
|
|
73
73
|
dependencies = [
|
|
74
|
-
"windows-sys 0.
|
|
74
|
+
"windows-sys 0.59.0",
|
|
75
75
|
]
|
|
76
76
|
|
|
77
77
|
[[package]]
|
|
78
78
|
name = "anstyle-wincon"
|
|
79
|
-
version = "3.0.
|
|
79
|
+
version = "3.0.6"
|
|
80
80
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
81
|
-
checksum = "
|
|
81
|
+
checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125"
|
|
82
82
|
dependencies = [
|
|
83
83
|
"anstyle",
|
|
84
|
-
"windows-sys 0.
|
|
84
|
+
"windows-sys 0.59.0",
|
|
85
85
|
]
|
|
86
86
|
|
|
87
87
|
[[package]]
|
|
88
88
|
name = "anyhow"
|
|
89
|
-
version = "1.0.
|
|
89
|
+
version = "1.0.91"
|
|
90
90
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
91
|
-
checksum = "
|
|
91
|
+
checksum = "c042108f3ed77fd83760a5fd79b53be043192bb3b9dba91d8c574c0ada7850c8"
|
|
92
92
|
|
|
93
93
|
[[package]]
|
|
94
94
|
name = "arc-swap"
|
|
@@ -213,9 +213,9 @@ dependencies = [
|
|
|
213
213
|
|
|
214
214
|
[[package]]
|
|
215
215
|
name = "clap_complete"
|
|
216
|
-
version = "4.5.
|
|
216
|
+
version = "4.5.35"
|
|
217
217
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
218
|
-
checksum = "
|
|
218
|
+
checksum = "07a13ab5b8cb13dbe35e68b83f6c12f9293b2f601797b71bc9f23befdb329feb"
|
|
219
219
|
dependencies = [
|
|
220
220
|
"clap",
|
|
221
221
|
]
|
|
@@ -256,9 +256,9 @@ checksum = "cbd0f76e066e64fdc5631e3bb46381254deab9ef1158292f27c8c57e3bf3fe59"
|
|
|
256
256
|
|
|
257
257
|
[[package]]
|
|
258
258
|
name = "colorchoice"
|
|
259
|
-
version = "1.0.
|
|
259
|
+
version = "1.0.3"
|
|
260
260
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
261
|
-
checksum = "
|
|
261
|
+
checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
|
|
262
262
|
|
|
263
263
|
[[package]]
|
|
264
264
|
name = "crc32fast"
|
|
@@ -306,7 +306,7 @@ dependencies = [
|
|
|
306
306
|
|
|
307
307
|
[[package]]
|
|
308
308
|
name = "decasify"
|
|
309
|
-
version = "0.
|
|
309
|
+
version = "0.8.0"
|
|
310
310
|
dependencies = [
|
|
311
311
|
"anyhow",
|
|
312
312
|
"assert_cmd",
|
|
@@ -317,6 +317,7 @@ dependencies = [
|
|
|
317
317
|
"predicates",
|
|
318
318
|
"pyo3",
|
|
319
319
|
"regex",
|
|
320
|
+
"snafu",
|
|
320
321
|
"strum",
|
|
321
322
|
"strum_macros",
|
|
322
323
|
"titlecase",
|
|
@@ -383,6 +384,12 @@ version = "1.0.5"
|
|
|
383
384
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
384
385
|
checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
|
|
385
386
|
|
|
387
|
+
[[package]]
|
|
388
|
+
name = "either"
|
|
389
|
+
version = "1.13.0"
|
|
390
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
391
|
+
checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
|
|
392
|
+
|
|
386
393
|
[[package]]
|
|
387
394
|
name = "errno"
|
|
388
395
|
version = "0.3.9"
|
|
@@ -508,18 +515,18 @@ dependencies = [
|
|
|
508
515
|
|
|
509
516
|
[[package]]
|
|
510
517
|
name = "gix-bitmap"
|
|
511
|
-
version = "0.2.
|
|
518
|
+
version = "0.2.12"
|
|
512
519
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
513
|
-
checksum = "
|
|
520
|
+
checksum = "10f78312288bd02052be5dbc2ecbc342c9f4eb791986d86c0a5c06b92dc72efa"
|
|
514
521
|
dependencies = [
|
|
515
522
|
"thiserror",
|
|
516
523
|
]
|
|
517
524
|
|
|
518
525
|
[[package]]
|
|
519
526
|
name = "gix-chunk"
|
|
520
|
-
version = "0.4.
|
|
527
|
+
version = "0.4.9"
|
|
521
528
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
522
|
-
checksum = "
|
|
529
|
+
checksum = "6c28b58ba04f0c004722344390af9dbc85888fbb84be1981afb934da4114d4cf"
|
|
523
530
|
dependencies = [
|
|
524
531
|
"thiserror",
|
|
525
532
|
]
|
|
@@ -561,9 +568,9 @@ dependencies = [
|
|
|
561
568
|
|
|
562
569
|
[[package]]
|
|
563
570
|
name = "gix-config-value"
|
|
564
|
-
version = "0.14.
|
|
571
|
+
version = "0.14.9"
|
|
565
572
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
566
|
-
checksum = "
|
|
573
|
+
checksum = "f3de3fdca9c75fa4b83a76583d265fa49b1de6b088ebcd210749c24ceeb74660"
|
|
567
574
|
dependencies = [
|
|
568
575
|
"bitflags",
|
|
569
576
|
"bstr",
|
|
@@ -574,9 +581,9 @@ dependencies = [
|
|
|
574
581
|
|
|
575
582
|
[[package]]
|
|
576
583
|
name = "gix-date"
|
|
577
|
-
version = "0.9.
|
|
584
|
+
version = "0.9.1"
|
|
578
585
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
579
|
-
checksum = "
|
|
586
|
+
checksum = "d10d543ac13c97292a15e8e8b7889cd006faf739777437ed95362504b8fe81a0"
|
|
580
587
|
dependencies = [
|
|
581
588
|
"bstr",
|
|
582
589
|
"itoa",
|
|
@@ -773,9 +780,9 @@ dependencies = [
|
|
|
773
780
|
|
|
774
781
|
[[package]]
|
|
775
782
|
name = "gix-path"
|
|
776
|
-
version = "0.10.
|
|
783
|
+
version = "0.10.12"
|
|
777
784
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
778
|
-
checksum = "
|
|
785
|
+
checksum = "c04e5a94fdb56b1e91eb7df2658ad16832428b8eeda24ff1a0f0288de2bce554"
|
|
779
786
|
dependencies = [
|
|
780
787
|
"bstr",
|
|
781
788
|
"gix-trace",
|
|
@@ -786,9 +793,9 @@ dependencies = [
|
|
|
786
793
|
|
|
787
794
|
[[package]]
|
|
788
795
|
name = "gix-quote"
|
|
789
|
-
version = "0.4.
|
|
796
|
+
version = "0.4.13"
|
|
790
797
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
791
|
-
checksum = "
|
|
798
|
+
checksum = "f89f9a1525dcfd9639e282ea939f5ab0d09d93cf2b90c1fc6104f1b9582a8e49"
|
|
792
799
|
dependencies = [
|
|
793
800
|
"bstr",
|
|
794
801
|
"gix-utils",
|
|
@@ -863,9 +870,9 @@ dependencies = [
|
|
|
863
870
|
|
|
864
871
|
[[package]]
|
|
865
872
|
name = "gix-sec"
|
|
866
|
-
version = "0.10.
|
|
873
|
+
version = "0.10.9"
|
|
867
874
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
868
|
-
checksum = "
|
|
875
|
+
checksum = "a2007538eda296445c07949cf04f4a767307d887184d6b3e83e2d636533ddc6e"
|
|
869
876
|
dependencies = [
|
|
870
877
|
"bitflags",
|
|
871
878
|
"gix-path",
|
|
@@ -890,9 +897,9 @@ dependencies = [
|
|
|
890
897
|
|
|
891
898
|
[[package]]
|
|
892
899
|
name = "gix-trace"
|
|
893
|
-
version = "0.1.
|
|
900
|
+
version = "0.1.11"
|
|
894
901
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
895
|
-
checksum = "
|
|
902
|
+
checksum = "04bdde120c29f1fc23a24d3e115aeeea3d60d8e65bab92cc5f9d90d9302eb952"
|
|
896
903
|
|
|
897
904
|
[[package]]
|
|
898
905
|
name = "gix-traverse"
|
|
@@ -927,9 +934,9 @@ dependencies = [
|
|
|
927
934
|
|
|
928
935
|
[[package]]
|
|
929
936
|
name = "gix-utils"
|
|
930
|
-
version = "0.1.
|
|
937
|
+
version = "0.1.13"
|
|
931
938
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
932
|
-
checksum = "
|
|
939
|
+
checksum = "ba427e3e9599508ed98a6ddf8ed05493db114564e338e41f6a996d2e4790335f"
|
|
933
940
|
dependencies = [
|
|
934
941
|
"fastrand",
|
|
935
942
|
"unicode-normalization",
|
|
@@ -937,9 +944,9 @@ dependencies = [
|
|
|
937
944
|
|
|
938
945
|
[[package]]
|
|
939
946
|
name = "gix-validate"
|
|
940
|
-
version = "0.9.
|
|
947
|
+
version = "0.9.1"
|
|
941
948
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
942
|
-
checksum = "
|
|
949
|
+
checksum = "e187b263461bc36cea17650141567753bc6207d036cedd1de6e81a52f277ff68"
|
|
943
950
|
dependencies = [
|
|
944
951
|
"bstr",
|
|
945
952
|
"thiserror",
|
|
@@ -1103,23 +1110,24 @@ dependencies = [
|
|
|
1103
1110
|
|
|
1104
1111
|
[[package]]
|
|
1105
1112
|
name = "mlua"
|
|
1106
|
-
version = "0.
|
|
1113
|
+
version = "0.10.0"
|
|
1107
1114
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1108
|
-
checksum = "
|
|
1115
|
+
checksum = "0f6ddbd668297c46be4bdea6c599dcc1f001a129586272d53170b7ac0a62961e"
|
|
1109
1116
|
dependencies = [
|
|
1110
1117
|
"bstr",
|
|
1118
|
+
"either",
|
|
1111
1119
|
"mlua-sys",
|
|
1112
1120
|
"mlua_derive",
|
|
1113
1121
|
"num-traits",
|
|
1114
|
-
"
|
|
1122
|
+
"parking_lot",
|
|
1115
1123
|
"rustc-hash",
|
|
1116
1124
|
]
|
|
1117
1125
|
|
|
1118
1126
|
[[package]]
|
|
1119
1127
|
name = "mlua-sys"
|
|
1120
|
-
version = "0.6.
|
|
1128
|
+
version = "0.6.4"
|
|
1121
1129
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1122
|
-
checksum = "
|
|
1130
|
+
checksum = "e9eebac25c35a13285456c88ee2fde93d9aee8bcfdaf03f9d6d12be3391351ec"
|
|
1123
1131
|
dependencies = [
|
|
1124
1132
|
"cc",
|
|
1125
1133
|
"cfg-if",
|
|
@@ -1128,9 +1136,9 @@ dependencies = [
|
|
|
1128
1136
|
|
|
1129
1137
|
[[package]]
|
|
1130
1138
|
name = "mlua_derive"
|
|
1131
|
-
version = "0.
|
|
1139
|
+
version = "0.10.0"
|
|
1132
1140
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1133
|
-
checksum = "
|
|
1141
|
+
checksum = "2cfc5faa2e0d044b3f5f0879be2920e0a711c97744c42cf1c295cb183668933e"
|
|
1134
1142
|
dependencies = [
|
|
1135
1143
|
"proc-macro2",
|
|
1136
1144
|
"quote",
|
|
@@ -1252,9 +1260,9 @@ dependencies = [
|
|
|
1252
1260
|
|
|
1253
1261
|
[[package]]
|
|
1254
1262
|
name = "proc-macro2"
|
|
1255
|
-
version = "1.0.
|
|
1263
|
+
version = "1.0.89"
|
|
1256
1264
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1257
|
-
checksum = "
|
|
1265
|
+
checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e"
|
|
1258
1266
|
dependencies = [
|
|
1259
1267
|
"unicode-ident",
|
|
1260
1268
|
]
|
|
@@ -1348,9 +1356,9 @@ dependencies = [
|
|
|
1348
1356
|
|
|
1349
1357
|
[[package]]
|
|
1350
1358
|
name = "regex"
|
|
1351
|
-
version = "1.11.
|
|
1359
|
+
version = "1.11.1"
|
|
1352
1360
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1353
|
-
checksum = "
|
|
1361
|
+
checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
|
|
1354
1362
|
dependencies = [
|
|
1355
1363
|
"aho-corasick",
|
|
1356
1364
|
"memchr",
|
|
@@ -1447,18 +1455,18 @@ dependencies = [
|
|
|
1447
1455
|
|
|
1448
1456
|
[[package]]
|
|
1449
1457
|
name = "serde"
|
|
1450
|
-
version = "1.0.
|
|
1458
|
+
version = "1.0.213"
|
|
1451
1459
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1452
|
-
checksum = "
|
|
1460
|
+
checksum = "3ea7893ff5e2466df8d720bb615088341b295f849602c6956047f8f80f0e9bc1"
|
|
1453
1461
|
dependencies = [
|
|
1454
1462
|
"serde_derive",
|
|
1455
1463
|
]
|
|
1456
1464
|
|
|
1457
1465
|
[[package]]
|
|
1458
1466
|
name = "serde_derive"
|
|
1459
|
-
version = "1.0.
|
|
1467
|
+
version = "1.0.213"
|
|
1460
1468
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1461
|
-
checksum = "
|
|
1469
|
+
checksum = "7e85ad2009c50b58e87caa8cd6dac16bdf511bbfb7af6c33df902396aa480fa5"
|
|
1462
1470
|
dependencies = [
|
|
1463
1471
|
"proc-macro2",
|
|
1464
1472
|
"quote",
|
|
@@ -1514,6 +1522,27 @@ version = "1.13.2"
|
|
|
1514
1522
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1515
1523
|
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
|
|
1516
1524
|
|
|
1525
|
+
[[package]]
|
|
1526
|
+
name = "snafu"
|
|
1527
|
+
version = "0.8.5"
|
|
1528
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1529
|
+
checksum = "223891c85e2a29c3fe8fb900c1fae5e69c2e42415e3177752e8718475efa5019"
|
|
1530
|
+
dependencies = [
|
|
1531
|
+
"snafu-derive",
|
|
1532
|
+
]
|
|
1533
|
+
|
|
1534
|
+
[[package]]
|
|
1535
|
+
name = "snafu-derive"
|
|
1536
|
+
version = "0.8.5"
|
|
1537
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1538
|
+
checksum = "03c3c6b7927ffe7ecaa769ee0e3994da3b8cafc8f444578982c83ecb161af917"
|
|
1539
|
+
dependencies = [
|
|
1540
|
+
"heck",
|
|
1541
|
+
"proc-macro2",
|
|
1542
|
+
"quote",
|
|
1543
|
+
"syn",
|
|
1544
|
+
]
|
|
1545
|
+
|
|
1517
1546
|
[[package]]
|
|
1518
1547
|
name = "strsim"
|
|
1519
1548
|
version = "0.11.1"
|
|
@@ -1541,9 +1570,9 @@ dependencies = [
|
|
|
1541
1570
|
|
|
1542
1571
|
[[package]]
|
|
1543
1572
|
name = "syn"
|
|
1544
|
-
version = "2.0.
|
|
1573
|
+
version = "2.0.85"
|
|
1545
1574
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1546
|
-
checksum = "
|
|
1575
|
+
checksum = "5023162dfcd14ef8f32034d8bcd4cc5ddc61ef7a247c024a33e24e1f24d21b56"
|
|
1547
1576
|
dependencies = [
|
|
1548
1577
|
"proc-macro2",
|
|
1549
1578
|
"quote",
|
|
@@ -1587,18 +1616,18 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76"
|
|
|
1587
1616
|
|
|
1588
1617
|
[[package]]
|
|
1589
1618
|
name = "thiserror"
|
|
1590
|
-
version = "1.0.
|
|
1619
|
+
version = "1.0.65"
|
|
1591
1620
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1592
|
-
checksum = "
|
|
1621
|
+
checksum = "5d11abd9594d9b38965ef50805c5e469ca9cc6f197f883f717e0269a3057b3d5"
|
|
1593
1622
|
dependencies = [
|
|
1594
1623
|
"thiserror-impl",
|
|
1595
1624
|
]
|
|
1596
1625
|
|
|
1597
1626
|
[[package]]
|
|
1598
1627
|
name = "thiserror-impl"
|
|
1599
|
-
version = "1.0.
|
|
1628
|
+
version = "1.0.65"
|
|
1600
1629
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1601
|
-
checksum = "
|
|
1630
|
+
checksum = "ae71770322cbd277e69d762a16c444af02aa0575ac0d174f0b9562d3b37f8602"
|
|
1602
1631
|
dependencies = [
|
|
1603
1632
|
"proc-macro2",
|
|
1604
1633
|
"quote",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "decasify"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.8.0"
|
|
4
4
|
authors = ["Caleb Maclennan <caleb@alerque.com>"]
|
|
5
5
|
edition = "2021"
|
|
6
6
|
rust-version = "1.73.0"
|
|
@@ -23,12 +23,12 @@ required-features = ["cli"]
|
|
|
23
23
|
[features]
|
|
24
24
|
default = []
|
|
25
25
|
full = ["cli", "bash", "elvish", "fish", "manpage", "powershell", "zsh"]
|
|
26
|
-
completions = ["cli", "clap_complete"]
|
|
27
|
-
cli = ["clap"]
|
|
26
|
+
completions = ["cli", "dep:clap_complete"]
|
|
27
|
+
cli = ["dep:clap"]
|
|
28
28
|
bash = ["completions"]
|
|
29
29
|
elvish = ["completions"]
|
|
30
30
|
fish = ["completions"]
|
|
31
|
-
manpage = ["clap_mangen"]
|
|
31
|
+
manpage = ["dep:clap_mangen"]
|
|
32
32
|
powershell = ["completions"]
|
|
33
33
|
zsh = ["completions"]
|
|
34
34
|
luamodule = []
|
|
@@ -37,17 +37,19 @@ lua53 = ["luamodule", "mlua/lua53"]
|
|
|
37
37
|
lua52 = ["luamodule", "mlua/lua52"]
|
|
38
38
|
lua51 = ["luamodule", "mlua/lua51"]
|
|
39
39
|
luajit = ["luamodule", "mlua/luajit"]
|
|
40
|
-
pythonmodule = ["pyo3"]
|
|
41
|
-
|
|
40
|
+
pythonmodule = ["dep:pyo3"]
|
|
41
|
+
unstable-trait = []
|
|
42
|
+
wasm = ["dep:wasm-bindgen"]
|
|
42
43
|
|
|
43
44
|
[profile.release]
|
|
44
45
|
lto = true
|
|
45
46
|
|
|
46
47
|
[dependencies]
|
|
47
|
-
regex = "1.
|
|
48
|
+
regex = "1.11"
|
|
49
|
+
snafu = "0.8"
|
|
48
50
|
strum = "0.26"
|
|
49
51
|
strum_macros = "0.26"
|
|
50
|
-
unicode_titlecase = "2.
|
|
52
|
+
unicode_titlecase = "2.4"
|
|
51
53
|
|
|
52
54
|
[dependencies.clap]
|
|
53
55
|
version = "4.5"
|
|
@@ -55,7 +57,7 @@ unicode_titlecase = "2.3"
|
|
|
55
57
|
features = ["derive", "wrap_help"]
|
|
56
58
|
|
|
57
59
|
[dependencies.mlua]
|
|
58
|
-
version = "0.
|
|
60
|
+
version = "0.10.0"
|
|
59
61
|
optional = true
|
|
60
62
|
features = ["module"]
|
|
61
63
|
|
|
@@ -73,6 +75,7 @@ unicode_titlecase = "2.3"
|
|
|
73
75
|
optional = true
|
|
74
76
|
|
|
75
77
|
[build-dependencies]
|
|
78
|
+
snafu = "0.8"
|
|
76
79
|
strum = "0.26"
|
|
77
80
|
strum_macros = "0.26"
|
|
78
81
|
|
|
@@ -104,6 +107,10 @@ predicates = "3.1"
|
|
|
104
107
|
[lints.rust]
|
|
105
108
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(build)'] }
|
|
106
109
|
|
|
110
|
+
[package.metadata.docs.rs]
|
|
111
|
+
features = ["luamodule", "luajit", "pythonmodule", "wasm", "unstable-trait"]
|
|
112
|
+
rustdoc-args = ["--cfg", "docsrs"]
|
|
113
|
+
|
|
107
114
|
[package.metadata.git-cliff.git]
|
|
108
115
|
protect_breaking_commits = true
|
|
109
116
|
commit_parsers = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: decasify
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: Natural Language :: English
|
|
@@ -54,15 +54,6 @@ The AP style is largely unimplemented.
|
|
|
54
54
|
|
|
55
55
|
Contributions are welcome for better style guide support or further languages.
|
|
56
56
|
|
|
57
|
-
``` console
|
|
58
|
-
$ decasify -l tr ILIK SU VE İTEN RÜZGARLAR
|
|
59
|
-
Ilık Su ve İten Rüzgarlar
|
|
60
|
-
$ echo ILIK SU VE İTEN RÜZGARLAR | decasify -l tr
|
|
61
|
-
Ilık Su ve İten Rüzgarlar
|
|
62
|
-
$ echo foo BAR AND baz: an alter ego | decasify -l en -s gruber
|
|
63
|
-
Foo BAR and Baz: An Alter Ego
|
|
64
|
-
```
|
|
65
|
-
|
|
66
57
|
[tdk]: https://tdk.gov.tr/icerik/yazim-kurallari/buyuk-harflerin-kullanildigi-yerler/
|
|
67
58
|
[titlecase_crate]: https://crates.io/crates/titlecase
|
|
68
59
|
|
|
@@ -70,27 +61,23 @@ Foo BAR and Baz: An Alter Ego
|
|
|
70
61
|
|
|
71
62
|
Use of the CLI is pretty simple.
|
|
72
63
|
Input may be either shell arguments or STDIN.
|
|
64
|
+
Arguments can control the various options.
|
|
65
|
+
For full usage information check `decasify --help` or `man decasify`.
|
|
73
66
|
|
|
74
|
-
```console
|
|
75
|
-
$ decasify
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Options:
|
|
85
|
-
-l, --locale <LOCALE> Locale [default: EN] [possible values: EN, TR]
|
|
86
|
-
-c, --case <CASE> Target case [default: Title] [possible values: Lower, Sentence, Title,
|
|
87
|
-
Upper]
|
|
88
|
-
-s, --style <STYLE> Style Guide [possible values: ap, cmos, gruber]
|
|
89
|
-
-h, --help Print help
|
|
90
|
-
-V, --version Print version
|
|
67
|
+
``` console
|
|
68
|
+
$ decasify -l tr ILIK SU VE İTEN RÜZGARLAR
|
|
69
|
+
Ilık Su ve İten Rüzgarlar
|
|
70
|
+
|
|
71
|
+
$ echo ILIK SU VE İTEN RÜZGARLAR | decasify -l tr
|
|
72
|
+
Ilık Su ve İten Rüzgarlar
|
|
73
|
+
|
|
74
|
+
$ echo foo BAR AND baz: an alter ego | decasify -l en -s gruber
|
|
75
|
+
Foo BAR and Baz: An Alter Ego
|
|
91
76
|
```
|
|
92
77
|
|
|
93
|
-
|
|
78
|
+
### Installation
|
|
79
|
+
|
|
80
|
+
To install, first check your distro for packages, e.g. for [Arch Linux](https://archlinux.org/packages/extra/x86_64/decasify/) just install via `pacman -S decasify`.
|
|
94
81
|
|
|
95
82
|
Otherwise for many platforms you can run it directly or install it to a shell using Nix Flakes:
|
|
96
83
|
|
|
@@ -126,21 +113,21 @@ In your `Cargo.toml` file.
|
|
|
126
113
|
|
|
127
114
|
```toml
|
|
128
115
|
[dependencies]
|
|
129
|
-
decasify = "0.
|
|
116
|
+
decasify = "0.8"
|
|
130
117
|
```
|
|
131
118
|
|
|
132
119
|
Then use the crate functions and types in your project something like this:
|
|
133
120
|
|
|
134
121
|
```rust
|
|
135
|
-
use decasify::
|
|
122
|
+
use decasify::titlecase;
|
|
136
123
|
use decasify::{Locale, StyleGuide};
|
|
137
124
|
|
|
138
125
|
fn demo() {
|
|
139
126
|
let input = "ILIK SU VE İTEN RÜZGARLAR";
|
|
140
|
-
let output =
|
|
127
|
+
let output = titlecase(input, Locale::TR, StyleGuide::LanguageDefault);
|
|
141
128
|
eprintln! {"{output}"};
|
|
142
129
|
let input = "title with a twist: a colon";
|
|
143
|
-
let output =
|
|
130
|
+
let output = titlecase(input, Locale::EN, StyleGuide::DaringFireball);
|
|
144
131
|
eprintln! {"{output}"};
|
|
145
132
|
}
|
|
146
133
|
```
|
|
@@ -32,15 +32,6 @@ The AP style is largely unimplemented.
|
|
|
32
32
|
|
|
33
33
|
Contributions are welcome for better style guide support or further languages.
|
|
34
34
|
|
|
35
|
-
``` console
|
|
36
|
-
$ decasify -l tr ILIK SU VE İTEN RÜZGARLAR
|
|
37
|
-
Ilık Su ve İten Rüzgarlar
|
|
38
|
-
$ echo ILIK SU VE İTEN RÜZGARLAR | decasify -l tr
|
|
39
|
-
Ilık Su ve İten Rüzgarlar
|
|
40
|
-
$ echo foo BAR AND baz: an alter ego | decasify -l en -s gruber
|
|
41
|
-
Foo BAR and Baz: An Alter Ego
|
|
42
|
-
```
|
|
43
|
-
|
|
44
35
|
[tdk]: https://tdk.gov.tr/icerik/yazim-kurallari/buyuk-harflerin-kullanildigi-yerler/
|
|
45
36
|
[titlecase_crate]: https://crates.io/crates/titlecase
|
|
46
37
|
|
|
@@ -48,27 +39,23 @@ Foo BAR and Baz: An Alter Ego
|
|
|
48
39
|
|
|
49
40
|
Use of the CLI is pretty simple.
|
|
50
41
|
Input may be either shell arguments or STDIN.
|
|
42
|
+
Arguments can control the various options.
|
|
43
|
+
For full usage information check `decasify --help` or `man decasify`.
|
|
51
44
|
|
|
52
|
-
```console
|
|
53
|
-
$ decasify
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
Options:
|
|
63
|
-
-l, --locale <LOCALE> Locale [default: EN] [possible values: EN, TR]
|
|
64
|
-
-c, --case <CASE> Target case [default: Title] [possible values: Lower, Sentence, Title,
|
|
65
|
-
Upper]
|
|
66
|
-
-s, --style <STYLE> Style Guide [possible values: ap, cmos, gruber]
|
|
67
|
-
-h, --help Print help
|
|
68
|
-
-V, --version Print version
|
|
45
|
+
``` console
|
|
46
|
+
$ decasify -l tr ILIK SU VE İTEN RÜZGARLAR
|
|
47
|
+
Ilık Su ve İten Rüzgarlar
|
|
48
|
+
|
|
49
|
+
$ echo ILIK SU VE İTEN RÜZGARLAR | decasify -l tr
|
|
50
|
+
Ilık Su ve İten Rüzgarlar
|
|
51
|
+
|
|
52
|
+
$ echo foo BAR AND baz: an alter ego | decasify -l en -s gruber
|
|
53
|
+
Foo BAR and Baz: An Alter Ego
|
|
69
54
|
```
|
|
70
55
|
|
|
71
|
-
|
|
56
|
+
### Installation
|
|
57
|
+
|
|
58
|
+
To install, first check your distro for packages, e.g. for [Arch Linux](https://archlinux.org/packages/extra/x86_64/decasify/) just install via `pacman -S decasify`.
|
|
72
59
|
|
|
73
60
|
Otherwise for many platforms you can run it directly or install it to a shell using Nix Flakes:
|
|
74
61
|
|
|
@@ -104,21 +91,21 @@ In your `Cargo.toml` file.
|
|
|
104
91
|
|
|
105
92
|
```toml
|
|
106
93
|
[dependencies]
|
|
107
|
-
decasify = "0.
|
|
94
|
+
decasify = "0.8"
|
|
108
95
|
```
|
|
109
96
|
|
|
110
97
|
Then use the crate functions and types in your project something like this:
|
|
111
98
|
|
|
112
99
|
```rust
|
|
113
|
-
use decasify::
|
|
100
|
+
use decasify::titlecase;
|
|
114
101
|
use decasify::{Locale, StyleGuide};
|
|
115
102
|
|
|
116
103
|
fn demo() {
|
|
117
104
|
let input = "ILIK SU VE İTEN RÜZGARLAR";
|
|
118
|
-
let output =
|
|
105
|
+
let output = titlecase(input, Locale::TR, StyleGuide::LanguageDefault);
|
|
119
106
|
eprintln! {"{output}"};
|
|
120
107
|
let input = "title with a twist: a colon";
|
|
121
|
-
let output =
|
|
108
|
+
let output = titlecase(input, Locale::EN, StyleGuide::DaringFireball);
|
|
122
109
|
eprintln! {"{output}"};
|
|
123
110
|
}
|
|
124
111
|
```
|
|
@@ -36,6 +36,9 @@ fn main() -> AnyhowResult<()> {
|
|
|
36
36
|
if let Ok(val) = env::var("VERSION_FROM_AUTOTOOLS") {
|
|
37
37
|
println!("cargo:rustc-env=VERGEN_GIT_DESCRIBE={val}");
|
|
38
38
|
builder.add_instructions(&RustcBuilder::all_rustc()?)?;
|
|
39
|
+
} else if let Ok(val) = env::var("LUA_ROCKSPEC_VERSION") {
|
|
40
|
+
println!("cargo:rustc-env=VERGEN_GIT_DESCRIBE=v{val}");
|
|
41
|
+
builder.add_instructions(&RustcBuilder::all_rustc()?)?;
|
|
39
42
|
} else {
|
|
40
43
|
builder.add_instructions(&GixBuilder::all_git()?)?;
|
|
41
44
|
};
|