html-to-markdown 3.10.6 → 3.11.2
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.
- checksums.yaml +4 -4
- data/README.md +8 -3
- data/ext/html_to_markdown_rb/Cargo.lock +78 -79
- data/ext/html_to_markdown_rb/Cargo.toml +33 -7
- data/ext/html_to_markdown_rb/native/Cargo.lock +35 -74
- data/ext/html_to_markdown_rb/native/Cargo.toml +18 -2
- data/ext/html_to_markdown_rb/native/extconf.rb +5 -0
- data/ext/html_to_markdown_rb/src/lib.rs +268 -245
- data/lib/html_to_markdown/native.rb +206 -108
- data/lib/html_to_markdown/version.rb +3 -3
- data/lib/html_to_markdown.rb +2 -2
- data/lib/html_to_markdown_rb.so +0 -0
- data/sig/types.rbs +298 -301
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d803dd49f19186384b6d1045396607357089686976bb2e76dda9f6f88657dbd
|
|
4
|
+
data.tar.gz: 0153d587a963e6d9e987a12f192270a5938c0db87e4ea44a94680ca043046c5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aed4d7164578fdd3c46da834fd41940a8fa370aabdfbc98e055e6872049570b949f8985d035aba860996a1bdb5510e5767d25b7767ba29a9d5e2146ba477ef74
|
|
7
|
+
data.tar.gz: 5fa85ef9897aa800027c6216fa1247f445e347152c3180558b7513f6266161c5afa758ca5e06031ed2086f744bf68e5db5687c438c203018f24e36e5eeb6db26
|
data/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<!-- This file is auto-generated by alef — DO NOT EDIT. -->
|
|
2
|
+
<!-- alef:hash:2dfe93eb3bd453727bd16a768e142a0ef802995ed6c4d38a17d43cf6b2fea8b4 -->
|
|
3
|
+
<!-- To regenerate: alef readme -->
|
|
4
|
+
<!-- To verify freshness: alef verify -->
|
|
5
|
+
|
|
1
6
|
<p align="center">
|
|
2
7
|
<picture>
|
|
3
8
|
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/xberg-io/assets@v1/banner/readme-banner-dark.svg">
|
|
@@ -287,13 +292,13 @@ class MyVisitor
|
|
|
287
292
|
if href.start_with?('https://old-cdn.com')
|
|
288
293
|
href = href.sub('https://old-cdn.com', 'https://new-cdn.com')
|
|
289
294
|
end
|
|
290
|
-
# Directive keys/symbols are matched case-sensitively: :
|
|
291
|
-
{
|
|
295
|
+
# Directive keys/symbols are matched case-sensitively as lowercase: :custom, :skip, :continue.
|
|
296
|
+
{ custom: "[#{text}](#{href})" }
|
|
292
297
|
end
|
|
293
298
|
|
|
294
299
|
def visit_image(ctx, src, alt = nil, title = nil)
|
|
295
300
|
# Skip tracking pixels
|
|
296
|
-
src.include?('tracking') ? :
|
|
301
|
+
src.include?('tracking') ? :skip : :continue
|
|
297
302
|
end
|
|
298
303
|
end
|
|
299
304
|
|
|
@@ -23,19 +23,13 @@ dependencies = [
|
|
|
23
23
|
|
|
24
24
|
[[package]]
|
|
25
25
|
name = "aho-corasick"
|
|
26
|
-
version = "1.1.
|
|
26
|
+
version = "1.1.5"
|
|
27
27
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
28
|
-
checksum = "
|
|
28
|
+
checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
|
|
29
29
|
dependencies = [
|
|
30
30
|
"memchr",
|
|
31
31
|
]
|
|
32
32
|
|
|
33
|
-
[[package]]
|
|
34
|
-
name = "allocator-api2"
|
|
35
|
-
version = "0.2.21"
|
|
36
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
37
|
-
checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
|
|
38
|
-
|
|
39
33
|
[[package]]
|
|
40
34
|
name = "astral-tl"
|
|
41
35
|
version = "0.7.11"
|
|
@@ -53,9 +47,9 @@ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
|
53
47
|
|
|
54
48
|
[[package]]
|
|
55
49
|
name = "base64"
|
|
56
|
-
version = "0.
|
|
50
|
+
version = "0.23.1"
|
|
57
51
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
58
|
-
checksum = "
|
|
52
|
+
checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
|
|
59
53
|
|
|
60
54
|
[[package]]
|
|
61
55
|
name = "bindgen"
|
|
@@ -83,9 +77,9 @@ checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
|
|
|
83
77
|
|
|
84
78
|
[[package]]
|
|
85
79
|
name = "bytemuck"
|
|
86
|
-
version = "1.25.
|
|
80
|
+
version = "1.25.2"
|
|
87
81
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
88
|
-
checksum = "
|
|
82
|
+
checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
|
|
89
83
|
|
|
90
84
|
[[package]]
|
|
91
85
|
name = "byteorder-lite"
|
|
@@ -110,9 +104,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
|
110
104
|
|
|
111
105
|
[[package]]
|
|
112
106
|
name = "clang-sys"
|
|
113
|
-
version = "1.
|
|
107
|
+
version = "1.9.1"
|
|
114
108
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
115
|
-
checksum = "
|
|
109
|
+
checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
|
|
116
110
|
dependencies = [
|
|
117
111
|
"glob",
|
|
118
112
|
"libc",
|
|
@@ -162,21 +156,15 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
|
|
|
162
156
|
|
|
163
157
|
[[package]]
|
|
164
158
|
name = "either"
|
|
165
|
-
version = "1.
|
|
166
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
167
|
-
checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
|
|
168
|
-
|
|
169
|
-
[[package]]
|
|
170
|
-
name = "equivalent"
|
|
171
|
-
version = "1.0.2"
|
|
159
|
+
version = "1.17.0"
|
|
172
160
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
173
|
-
checksum = "
|
|
161
|
+
checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
|
|
174
162
|
|
|
175
163
|
[[package]]
|
|
176
164
|
name = "fastrand"
|
|
177
|
-
version = "2.
|
|
165
|
+
version = "2.5.0"
|
|
178
166
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
179
|
-
checksum = "
|
|
167
|
+
checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
|
|
180
168
|
|
|
181
169
|
[[package]]
|
|
182
170
|
name = "fdeflate"
|
|
@@ -197,12 +185,6 @@ dependencies = [
|
|
|
197
185
|
"miniz_oxide",
|
|
198
186
|
]
|
|
199
187
|
|
|
200
|
-
[[package]]
|
|
201
|
-
name = "foldhash"
|
|
202
|
-
version = "0.2.0"
|
|
203
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
204
|
-
checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
|
|
205
|
-
|
|
206
188
|
[[package]]
|
|
207
189
|
name = "getrandom"
|
|
208
190
|
version = "0.2.17"
|
|
@@ -226,30 +208,19 @@ dependencies = [
|
|
|
226
208
|
|
|
227
209
|
[[package]]
|
|
228
210
|
name = "glob"
|
|
229
|
-
version = "0.3.
|
|
230
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
231
|
-
checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|
232
|
-
|
|
233
|
-
[[package]]
|
|
234
|
-
name = "hashbrown"
|
|
235
|
-
version = "0.17.1"
|
|
211
|
+
version = "0.3.4"
|
|
236
212
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
237
|
-
checksum = "
|
|
238
|
-
dependencies = [
|
|
239
|
-
"allocator-api2",
|
|
240
|
-
"equivalent",
|
|
241
|
-
"foldhash",
|
|
242
|
-
]
|
|
213
|
+
checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
|
|
243
214
|
|
|
244
215
|
[[package]]
|
|
245
216
|
name = "html-escape"
|
|
246
|
-
version = "0.2.
|
|
217
|
+
version = "0.2.15"
|
|
247
218
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
248
|
-
checksum = "
|
|
219
|
+
checksum = "c9356095b4b41197bba32173600e1582792cda618f65d12f68e2e77d273413c5"
|
|
249
220
|
|
|
250
221
|
[[package]]
|
|
251
222
|
name = "html-to-markdown-rb"
|
|
252
|
-
version = "3.
|
|
223
|
+
version = "3.11.2"
|
|
253
224
|
dependencies = [
|
|
254
225
|
"html-to-markdown-rs",
|
|
255
226
|
"magnus",
|
|
@@ -259,7 +230,7 @@ dependencies = [
|
|
|
259
230
|
|
|
260
231
|
[[package]]
|
|
261
232
|
name = "html-to-markdown-rs"
|
|
262
|
-
version = "3.
|
|
233
|
+
version = "3.11.2"
|
|
263
234
|
dependencies = [
|
|
264
235
|
"ahash",
|
|
265
236
|
"astral-tl",
|
|
@@ -268,7 +239,6 @@ dependencies = [
|
|
|
268
239
|
"html-escape",
|
|
269
240
|
"html5ever",
|
|
270
241
|
"image",
|
|
271
|
-
"lru",
|
|
272
242
|
"memchr",
|
|
273
243
|
"once_cell",
|
|
274
244
|
"phf 0.14.0",
|
|
@@ -276,6 +246,7 @@ dependencies = [
|
|
|
276
246
|
"serde",
|
|
277
247
|
"serde_json",
|
|
278
248
|
"thiserror",
|
|
249
|
+
"tracing",
|
|
279
250
|
]
|
|
280
251
|
|
|
281
252
|
[[package]]
|
|
@@ -339,9 +310,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
|
339
310
|
|
|
340
311
|
[[package]]
|
|
341
312
|
name = "libc"
|
|
342
|
-
version = "0.2.
|
|
313
|
+
version = "0.2.189"
|
|
343
314
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
344
|
-
checksum = "
|
|
315
|
+
checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
|
|
345
316
|
|
|
346
317
|
[[package]]
|
|
347
318
|
name = "libloading"
|
|
@@ -368,15 +339,6 @@ version = "0.4.33"
|
|
|
368
339
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
369
340
|
checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
|
|
370
341
|
|
|
371
|
-
[[package]]
|
|
372
|
-
name = "lru"
|
|
373
|
-
version = "0.18.1"
|
|
374
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
375
|
-
checksum = "0b6180140927ee907000b0aa540091f6ea512ead4447c92b8fc35bc72788a5a6"
|
|
376
|
-
dependencies = [
|
|
377
|
-
"hashbrown",
|
|
378
|
-
]
|
|
379
|
-
|
|
380
342
|
[[package]]
|
|
381
343
|
name = "magnus"
|
|
382
344
|
version = "0.8.2"
|
|
@@ -579,6 +541,12 @@ dependencies = [
|
|
|
579
541
|
"siphasher",
|
|
580
542
|
]
|
|
581
543
|
|
|
544
|
+
[[package]]
|
|
545
|
+
name = "pin-project-lite"
|
|
546
|
+
version = "0.2.17"
|
|
547
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
548
|
+
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
|
549
|
+
|
|
582
550
|
[[package]]
|
|
583
551
|
name = "png"
|
|
584
552
|
version = "0.18.1"
|
|
@@ -681,9 +649,9 @@ dependencies = [
|
|
|
681
649
|
|
|
682
650
|
[[package]]
|
|
683
651
|
name = "regex-automata"
|
|
684
|
-
version = "0.4.
|
|
652
|
+
version = "0.4.18"
|
|
685
653
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
686
|
-
checksum = "
|
|
654
|
+
checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
|
|
687
655
|
dependencies = [
|
|
688
656
|
"aho-corasick",
|
|
689
657
|
"memchr",
|
|
@@ -741,14 +709,14 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
|
741
709
|
dependencies = [
|
|
742
710
|
"proc-macro2",
|
|
743
711
|
"quote",
|
|
744
|
-
"syn 3.0.
|
|
712
|
+
"syn 3.0.3",
|
|
745
713
|
]
|
|
746
714
|
|
|
747
715
|
[[package]]
|
|
748
716
|
name = "serde_json"
|
|
749
|
-
version = "1.0.
|
|
717
|
+
version = "1.0.151"
|
|
750
718
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
751
|
-
checksum = "
|
|
719
|
+
checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
|
|
752
720
|
dependencies = [
|
|
753
721
|
"itoa",
|
|
754
722
|
"memchr",
|
|
@@ -824,9 +792,9 @@ dependencies = [
|
|
|
824
792
|
|
|
825
793
|
[[package]]
|
|
826
794
|
name = "syn"
|
|
827
|
-
version = "3.0.
|
|
795
|
+
version = "3.0.3"
|
|
828
796
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
829
|
-
checksum = "
|
|
797
|
+
checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
|
|
830
798
|
dependencies = [
|
|
831
799
|
"proc-macro2",
|
|
832
800
|
"quote",
|
|
@@ -844,22 +812,22 @@ dependencies = [
|
|
|
844
812
|
|
|
845
813
|
[[package]]
|
|
846
814
|
name = "thiserror"
|
|
847
|
-
version = "2.0.
|
|
815
|
+
version = "2.0.20"
|
|
848
816
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
849
|
-
checksum = "
|
|
817
|
+
checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
|
|
850
818
|
dependencies = [
|
|
851
819
|
"thiserror-impl",
|
|
852
820
|
]
|
|
853
821
|
|
|
854
822
|
[[package]]
|
|
855
823
|
name = "thiserror-impl"
|
|
856
|
-
version = "2.0.
|
|
824
|
+
version = "2.0.20"
|
|
857
825
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
858
|
-
checksum = "
|
|
826
|
+
checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
|
|
859
827
|
dependencies = [
|
|
860
828
|
"proc-macro2",
|
|
861
829
|
"quote",
|
|
862
|
-
"syn 3.0.
|
|
830
|
+
"syn 3.0.3",
|
|
863
831
|
]
|
|
864
832
|
|
|
865
833
|
[[package]]
|
|
@@ -871,6 +839,37 @@ dependencies = [
|
|
|
871
839
|
"crunchy",
|
|
872
840
|
]
|
|
873
841
|
|
|
842
|
+
[[package]]
|
|
843
|
+
name = "tracing"
|
|
844
|
+
version = "0.1.44"
|
|
845
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
846
|
+
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
|
|
847
|
+
dependencies = [
|
|
848
|
+
"pin-project-lite",
|
|
849
|
+
"tracing-attributes",
|
|
850
|
+
"tracing-core",
|
|
851
|
+
]
|
|
852
|
+
|
|
853
|
+
[[package]]
|
|
854
|
+
name = "tracing-attributes"
|
|
855
|
+
version = "0.1.31"
|
|
856
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
857
|
+
checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
|
|
858
|
+
dependencies = [
|
|
859
|
+
"proc-macro2",
|
|
860
|
+
"quote",
|
|
861
|
+
"syn 2.0.119",
|
|
862
|
+
]
|
|
863
|
+
|
|
864
|
+
[[package]]
|
|
865
|
+
name = "tracing-core"
|
|
866
|
+
version = "0.1.36"
|
|
867
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
868
|
+
checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
|
|
869
|
+
dependencies = [
|
|
870
|
+
"once_cell",
|
|
871
|
+
]
|
|
872
|
+
|
|
874
873
|
[[package]]
|
|
875
874
|
name = "unicode-ident"
|
|
876
875
|
version = "1.0.24"
|
|
@@ -891,9 +890,9 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
|
|
891
890
|
|
|
892
891
|
[[package]]
|
|
893
892
|
name = "web_atoms"
|
|
894
|
-
version = "0.2.
|
|
893
|
+
version = "0.2.6"
|
|
895
894
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
896
|
-
checksum = "
|
|
895
|
+
checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3"
|
|
897
896
|
dependencies = [
|
|
898
897
|
"phf 0.13.1",
|
|
899
898
|
"phf_codegen",
|
|
@@ -915,18 +914,18 @@ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
|
915
914
|
|
|
916
915
|
[[package]]
|
|
917
916
|
name = "zerocopy"
|
|
918
|
-
version = "0.8.
|
|
917
|
+
version = "0.8.56"
|
|
919
918
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
920
|
-
checksum = "
|
|
919
|
+
checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"
|
|
921
920
|
dependencies = [
|
|
922
921
|
"zerocopy-derive",
|
|
923
922
|
]
|
|
924
923
|
|
|
925
924
|
[[package]]
|
|
926
925
|
name = "zerocopy-derive"
|
|
927
|
-
version = "0.8.
|
|
926
|
+
version = "0.8.56"
|
|
928
927
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
929
|
-
checksum = "
|
|
928
|
+
checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"
|
|
930
929
|
dependencies = [
|
|
931
930
|
"proc-macro2",
|
|
932
931
|
"quote",
|
|
@@ -941,9 +940,9 @@ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
|
941
940
|
|
|
942
941
|
[[package]]
|
|
943
942
|
name = "zune-core"
|
|
944
|
-
version = "0.5.
|
|
943
|
+
version = "0.5.3"
|
|
945
944
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
946
|
-
checksum = "
|
|
945
|
+
checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b"
|
|
947
946
|
|
|
948
947
|
[[package]]
|
|
949
948
|
name = "zune-jpeg"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
[package]
|
|
3
3
|
name = "html-to-markdown-rb"
|
|
4
|
-
version = "3.
|
|
4
|
+
version = "3.11.2"
|
|
5
5
|
edition = "2024"
|
|
6
6
|
license = "MIT"
|
|
7
7
|
[workspace]
|
|
@@ -12,13 +12,39 @@ crate-type = ["cdylib"]
|
|
|
12
12
|
|
|
13
13
|
[dependencies]
|
|
14
14
|
html-to-markdown-rs = { path = "../../../../crates/html-to-markdown", features = [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
"full",
|
|
16
|
+
"metadata",
|
|
17
|
+
"visitor",
|
|
18
|
+
"serde",
|
|
19
|
+
"inline-images",
|
|
20
|
+
"testkit",
|
|
21
21
|
] }
|
|
22
22
|
magnus = "0.8"
|
|
23
23
|
serde = { version = "1", features = ["derive"] }
|
|
24
24
|
serde_json = "1"
|
|
25
|
+
|
|
26
|
+
# ~keep Binding crates cannot use `lints.workspace = true`: the workspace forbids
|
|
27
|
+
# `unsafe_code`, `forbid` is not overridable by an inner `allow`, and Cargo rejects
|
|
28
|
+
# mixing `workspace = true` with per-lint overrides. Generated binding glue is
|
|
29
|
+
# unsafe by construction. `pedantic`/`nursery`/`cargo` are deliberately NOT mirrored:
|
|
30
|
+
# the bridge source these crates compile is alef-generated and carries a DO NOT EDIT
|
|
31
|
+
# header, so those style findings are unfixable here and would only be satisfiable in
|
|
32
|
+
# the generator. What remains is the set this repo can actually act on.
|
|
33
|
+
[lints.rust]
|
|
34
|
+
unsafe_code = "allow"
|
|
35
|
+
# ~keep The bridge source is alef-generated and undocumented at the item level.
|
|
36
|
+
missing_docs = "allow"
|
|
37
|
+
unused_must_use = "deny"
|
|
38
|
+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(alef)', 'cfg(feature, values("testkit"))', 'cfg(frb_expand)'] }
|
|
39
|
+
|
|
40
|
+
[lints.clippy]
|
|
41
|
+
all = { level = "deny", priority = -1 }
|
|
42
|
+
print_stdout = "deny"
|
|
43
|
+
print_stderr = "deny"
|
|
44
|
+
dbg_macro = "deny"
|
|
45
|
+
# ~keep Emitted by the generated bridge itself, so unfixable in this repo.
|
|
46
|
+
collapsible_if = { level = "allow", priority = 1 }
|
|
47
|
+
useless_conversion = { level = "allow", priority = 1 }
|
|
48
|
+
redundant_field_names = { level = "allow", priority = 1 }
|
|
49
|
+
wrong_self_convention = { level = "allow", priority = 1 }
|
|
50
|
+
field_reassign_with_default = { level = "allow", priority = 1 }
|