@miaskiewicz/turbo-dom 0.1.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.
- package/Cargo.lock +588 -0
- package/Cargo.toml +34 -0
- package/LICENSE +21 -0
- package/README.md +151 -0
- package/build.rs +4 -0
- package/index.d.ts +62 -0
- package/index.js +318 -0
- package/package.json +121 -0
- package/src/core.rs +492 -0
- package/src/environment/install.mjs +34 -0
- package/src/environment/jest.cjs +40 -0
- package/src/environment/vitest.mjs +31 -0
- package/src/lib.rs +161 -0
- package/src/runtime/buffer.mjs +35 -0
- package/src/runtime/collections.mjs +50 -0
- package/src/runtime/dom.mjs +863 -0
- package/src/runtime/events.mjs +213 -0
- package/src/runtime/html-serialize.mjs +72 -0
- package/src/runtime/index.mjs +46 -0
- package/src/runtime/selectors.mjs +239 -0
- package/src/runtime/stubs.mjs +148 -0
- package/src/runtime/window.mjs +168 -0
- package/turbo-dom-parser.darwin-arm64.node +0 -0
- package/turbo-dom-parser.linux-arm64-gnu.node +0 -0
- package/turbo-dom-parser.linux-x64-gnu.node +0 -0
- package/turbo-dom-parser.linux-x64-musl.node +0 -0
- package/turbo-dom-parser.win32-x64-msvc.node +0 -0
package/Cargo.lock
ADDED
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "aho-corasick"
|
|
7
|
+
version = "1.1.4"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"memchr",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "bitflags"
|
|
16
|
+
version = "2.12.1"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "84d7ced0ae9557296835c32bf1b1e02b44c746701f898460fb000d7eaa84f00a"
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "bumpalo"
|
|
22
|
+
version = "3.20.3"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "cfg-if"
|
|
28
|
+
version = "1.0.4"
|
|
29
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
31
|
+
|
|
32
|
+
[[package]]
|
|
33
|
+
name = "convert_case"
|
|
34
|
+
version = "0.6.0"
|
|
35
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
36
|
+
checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca"
|
|
37
|
+
dependencies = [
|
|
38
|
+
"unicode-segmentation",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[[package]]
|
|
42
|
+
name = "ctor"
|
|
43
|
+
version = "0.2.9"
|
|
44
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
45
|
+
checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501"
|
|
46
|
+
dependencies = [
|
|
47
|
+
"quote",
|
|
48
|
+
"syn",
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
[[package]]
|
|
52
|
+
name = "fastrand"
|
|
53
|
+
version = "2.4.1"
|
|
54
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
55
|
+
checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
|
|
56
|
+
|
|
57
|
+
[[package]]
|
|
58
|
+
name = "futures-core"
|
|
59
|
+
version = "0.3.32"
|
|
60
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
61
|
+
checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
|
|
62
|
+
|
|
63
|
+
[[package]]
|
|
64
|
+
name = "futures-task"
|
|
65
|
+
version = "0.3.32"
|
|
66
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
67
|
+
checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
|
|
68
|
+
|
|
69
|
+
[[package]]
|
|
70
|
+
name = "futures-util"
|
|
71
|
+
version = "0.3.32"
|
|
72
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
73
|
+
checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
|
|
74
|
+
dependencies = [
|
|
75
|
+
"futures-core",
|
|
76
|
+
"futures-task",
|
|
77
|
+
"pin-project-lite",
|
|
78
|
+
"slab",
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
[[package]]
|
|
82
|
+
name = "html5ever"
|
|
83
|
+
version = "0.39.0"
|
|
84
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
85
|
+
checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8"
|
|
86
|
+
dependencies = [
|
|
87
|
+
"log",
|
|
88
|
+
"markup5ever",
|
|
89
|
+
]
|
|
90
|
+
|
|
91
|
+
[[package]]
|
|
92
|
+
name = "js-sys"
|
|
93
|
+
version = "0.3.99"
|
|
94
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
95
|
+
checksum = "142bc4740e452c1e57ade0cbc129f139c9093e354346f0872ef985f4f5cf5f11"
|
|
96
|
+
dependencies = [
|
|
97
|
+
"cfg-if",
|
|
98
|
+
"futures-util",
|
|
99
|
+
"once_cell",
|
|
100
|
+
"wasm-bindgen",
|
|
101
|
+
]
|
|
102
|
+
|
|
103
|
+
[[package]]
|
|
104
|
+
name = "libc"
|
|
105
|
+
version = "0.2.186"
|
|
106
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
107
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
108
|
+
|
|
109
|
+
[[package]]
|
|
110
|
+
name = "libloading"
|
|
111
|
+
version = "0.8.9"
|
|
112
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
113
|
+
checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
|
|
114
|
+
dependencies = [
|
|
115
|
+
"cfg-if",
|
|
116
|
+
"windows-link",
|
|
117
|
+
]
|
|
118
|
+
|
|
119
|
+
[[package]]
|
|
120
|
+
name = "lock_api"
|
|
121
|
+
version = "0.4.14"
|
|
122
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
123
|
+
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
|
124
|
+
dependencies = [
|
|
125
|
+
"scopeguard",
|
|
126
|
+
]
|
|
127
|
+
|
|
128
|
+
[[package]]
|
|
129
|
+
name = "log"
|
|
130
|
+
version = "0.4.32"
|
|
131
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
132
|
+
checksum = "953f07c43838f8e6f9758cab68bf5bed85465e7587ebe0b823f1bcd81978ad3a"
|
|
133
|
+
|
|
134
|
+
[[package]]
|
|
135
|
+
name = "markup5ever"
|
|
136
|
+
version = "0.39.0"
|
|
137
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
138
|
+
checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de"
|
|
139
|
+
dependencies = [
|
|
140
|
+
"log",
|
|
141
|
+
"tendril",
|
|
142
|
+
"web_atoms",
|
|
143
|
+
]
|
|
144
|
+
|
|
145
|
+
[[package]]
|
|
146
|
+
name = "markup5ever_rcdom"
|
|
147
|
+
version = "0.39.0+unofficial"
|
|
148
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
149
|
+
checksum = "3ac010f19d6c4af81eeb4018a39d7a115de9d285af45c126a4ac02e6fc5716b7"
|
|
150
|
+
dependencies = [
|
|
151
|
+
"html5ever",
|
|
152
|
+
"markup5ever",
|
|
153
|
+
"tendril",
|
|
154
|
+
"xml5ever",
|
|
155
|
+
]
|
|
156
|
+
|
|
157
|
+
[[package]]
|
|
158
|
+
name = "memchr"
|
|
159
|
+
version = "2.8.1"
|
|
160
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
+
checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8"
|
|
162
|
+
|
|
163
|
+
[[package]]
|
|
164
|
+
name = "napi"
|
|
165
|
+
version = "2.16.17"
|
|
166
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
167
|
+
checksum = "55740c4ae1d8696773c78fdafd5d0e5fe9bc9f1b071c7ba493ba5c413a9184f3"
|
|
168
|
+
dependencies = [
|
|
169
|
+
"bitflags",
|
|
170
|
+
"ctor",
|
|
171
|
+
"napi-derive",
|
|
172
|
+
"napi-sys",
|
|
173
|
+
"once_cell",
|
|
174
|
+
]
|
|
175
|
+
|
|
176
|
+
[[package]]
|
|
177
|
+
name = "napi-build"
|
|
178
|
+
version = "2.3.2"
|
|
179
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
+
checksum = "c9c366d2c8c60b86fa632df75f745509b52f9128f91a6bad4c796e44abb505e1"
|
|
181
|
+
|
|
182
|
+
[[package]]
|
|
183
|
+
name = "napi-derive"
|
|
184
|
+
version = "2.16.13"
|
|
185
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
186
|
+
checksum = "7cbe2585d8ac223f7d34f13701434b9d5f4eb9c332cccce8dee57ea18ab8ab0c"
|
|
187
|
+
dependencies = [
|
|
188
|
+
"cfg-if",
|
|
189
|
+
"convert_case",
|
|
190
|
+
"napi-derive-backend",
|
|
191
|
+
"proc-macro2",
|
|
192
|
+
"quote",
|
|
193
|
+
"syn",
|
|
194
|
+
]
|
|
195
|
+
|
|
196
|
+
[[package]]
|
|
197
|
+
name = "napi-derive-backend"
|
|
198
|
+
version = "1.0.75"
|
|
199
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
200
|
+
checksum = "1639aaa9eeb76e91c6ae66da8ce3e89e921cd3885e99ec85f4abacae72fc91bf"
|
|
201
|
+
dependencies = [
|
|
202
|
+
"convert_case",
|
|
203
|
+
"once_cell",
|
|
204
|
+
"proc-macro2",
|
|
205
|
+
"quote",
|
|
206
|
+
"regex",
|
|
207
|
+
"semver",
|
|
208
|
+
"syn",
|
|
209
|
+
]
|
|
210
|
+
|
|
211
|
+
[[package]]
|
|
212
|
+
name = "napi-sys"
|
|
213
|
+
version = "2.4.0"
|
|
214
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
215
|
+
checksum = "427802e8ec3a734331fec1035594a210ce1ff4dc5bc1950530920ab717964ea3"
|
|
216
|
+
dependencies = [
|
|
217
|
+
"libloading",
|
|
218
|
+
]
|
|
219
|
+
|
|
220
|
+
[[package]]
|
|
221
|
+
name = "new_debug_unreachable"
|
|
222
|
+
version = "1.0.6"
|
|
223
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
224
|
+
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
|
|
225
|
+
|
|
226
|
+
[[package]]
|
|
227
|
+
name = "once_cell"
|
|
228
|
+
version = "1.21.4"
|
|
229
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
230
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
231
|
+
|
|
232
|
+
[[package]]
|
|
233
|
+
name = "parking_lot"
|
|
234
|
+
version = "0.12.5"
|
|
235
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
236
|
+
checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
|
|
237
|
+
dependencies = [
|
|
238
|
+
"lock_api",
|
|
239
|
+
"parking_lot_core",
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
[[package]]
|
|
243
|
+
name = "parking_lot_core"
|
|
244
|
+
version = "0.9.12"
|
|
245
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
246
|
+
checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
|
|
247
|
+
dependencies = [
|
|
248
|
+
"cfg-if",
|
|
249
|
+
"libc",
|
|
250
|
+
"redox_syscall",
|
|
251
|
+
"smallvec",
|
|
252
|
+
"windows-link",
|
|
253
|
+
]
|
|
254
|
+
|
|
255
|
+
[[package]]
|
|
256
|
+
name = "phf"
|
|
257
|
+
version = "0.13.1"
|
|
258
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
259
|
+
checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
|
|
260
|
+
dependencies = [
|
|
261
|
+
"phf_shared",
|
|
262
|
+
"serde",
|
|
263
|
+
]
|
|
264
|
+
|
|
265
|
+
[[package]]
|
|
266
|
+
name = "phf_codegen"
|
|
267
|
+
version = "0.13.1"
|
|
268
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
269
|
+
checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
|
|
270
|
+
dependencies = [
|
|
271
|
+
"phf_generator",
|
|
272
|
+
"phf_shared",
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
[[package]]
|
|
276
|
+
name = "phf_generator"
|
|
277
|
+
version = "0.13.1"
|
|
278
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
+
checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
|
|
280
|
+
dependencies = [
|
|
281
|
+
"fastrand",
|
|
282
|
+
"phf_shared",
|
|
283
|
+
]
|
|
284
|
+
|
|
285
|
+
[[package]]
|
|
286
|
+
name = "phf_shared"
|
|
287
|
+
version = "0.13.1"
|
|
288
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
289
|
+
checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
|
|
290
|
+
dependencies = [
|
|
291
|
+
"siphasher",
|
|
292
|
+
]
|
|
293
|
+
|
|
294
|
+
[[package]]
|
|
295
|
+
name = "pin-project-lite"
|
|
296
|
+
version = "0.2.17"
|
|
297
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
298
|
+
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
|
299
|
+
|
|
300
|
+
[[package]]
|
|
301
|
+
name = "precomputed-hash"
|
|
302
|
+
version = "0.1.1"
|
|
303
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
304
|
+
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
|
|
305
|
+
|
|
306
|
+
[[package]]
|
|
307
|
+
name = "proc-macro2"
|
|
308
|
+
version = "1.0.106"
|
|
309
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
310
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
311
|
+
dependencies = [
|
|
312
|
+
"unicode-ident",
|
|
313
|
+
]
|
|
314
|
+
|
|
315
|
+
[[package]]
|
|
316
|
+
name = "quote"
|
|
317
|
+
version = "1.0.45"
|
|
318
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
319
|
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
|
320
|
+
dependencies = [
|
|
321
|
+
"proc-macro2",
|
|
322
|
+
]
|
|
323
|
+
|
|
324
|
+
[[package]]
|
|
325
|
+
name = "redox_syscall"
|
|
326
|
+
version = "0.5.18"
|
|
327
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
328
|
+
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
|
|
329
|
+
dependencies = [
|
|
330
|
+
"bitflags",
|
|
331
|
+
]
|
|
332
|
+
|
|
333
|
+
[[package]]
|
|
334
|
+
name = "regex"
|
|
335
|
+
version = "1.12.3"
|
|
336
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
337
|
+
checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
|
|
338
|
+
dependencies = [
|
|
339
|
+
"aho-corasick",
|
|
340
|
+
"memchr",
|
|
341
|
+
"regex-automata",
|
|
342
|
+
"regex-syntax",
|
|
343
|
+
]
|
|
344
|
+
|
|
345
|
+
[[package]]
|
|
346
|
+
name = "regex-automata"
|
|
347
|
+
version = "0.4.14"
|
|
348
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
349
|
+
checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
|
|
350
|
+
dependencies = [
|
|
351
|
+
"aho-corasick",
|
|
352
|
+
"memchr",
|
|
353
|
+
"regex-syntax",
|
|
354
|
+
]
|
|
355
|
+
|
|
356
|
+
[[package]]
|
|
357
|
+
name = "regex-syntax"
|
|
358
|
+
version = "0.8.10"
|
|
359
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
360
|
+
checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
|
|
361
|
+
|
|
362
|
+
[[package]]
|
|
363
|
+
name = "rustversion"
|
|
364
|
+
version = "1.0.22"
|
|
365
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
366
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
367
|
+
|
|
368
|
+
[[package]]
|
|
369
|
+
name = "scopeguard"
|
|
370
|
+
version = "1.2.0"
|
|
371
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
372
|
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
373
|
+
|
|
374
|
+
[[package]]
|
|
375
|
+
name = "semver"
|
|
376
|
+
version = "1.0.28"
|
|
377
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
378
|
+
checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
|
|
379
|
+
|
|
380
|
+
[[package]]
|
|
381
|
+
name = "serde"
|
|
382
|
+
version = "1.0.228"
|
|
383
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
384
|
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
|
385
|
+
dependencies = [
|
|
386
|
+
"serde_core",
|
|
387
|
+
"serde_derive",
|
|
388
|
+
]
|
|
389
|
+
|
|
390
|
+
[[package]]
|
|
391
|
+
name = "serde-wasm-bindgen"
|
|
392
|
+
version = "0.6.5"
|
|
393
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
394
|
+
checksum = "8302e169f0eddcc139c70f139d19d6467353af16f9fce27e8c30158036a1e16b"
|
|
395
|
+
dependencies = [
|
|
396
|
+
"js-sys",
|
|
397
|
+
"serde",
|
|
398
|
+
"wasm-bindgen",
|
|
399
|
+
]
|
|
400
|
+
|
|
401
|
+
[[package]]
|
|
402
|
+
name = "serde_core"
|
|
403
|
+
version = "1.0.228"
|
|
404
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
405
|
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
|
406
|
+
dependencies = [
|
|
407
|
+
"serde_derive",
|
|
408
|
+
]
|
|
409
|
+
|
|
410
|
+
[[package]]
|
|
411
|
+
name = "serde_derive"
|
|
412
|
+
version = "1.0.228"
|
|
413
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
414
|
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
|
415
|
+
dependencies = [
|
|
416
|
+
"proc-macro2",
|
|
417
|
+
"quote",
|
|
418
|
+
"syn",
|
|
419
|
+
]
|
|
420
|
+
|
|
421
|
+
[[package]]
|
|
422
|
+
name = "siphasher"
|
|
423
|
+
version = "1.0.3"
|
|
424
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
425
|
+
checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"
|
|
426
|
+
|
|
427
|
+
[[package]]
|
|
428
|
+
name = "slab"
|
|
429
|
+
version = "0.4.12"
|
|
430
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
431
|
+
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
432
|
+
|
|
433
|
+
[[package]]
|
|
434
|
+
name = "smallvec"
|
|
435
|
+
version = "1.15.1"
|
|
436
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
437
|
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
|
438
|
+
|
|
439
|
+
[[package]]
|
|
440
|
+
name = "string_cache"
|
|
441
|
+
version = "0.9.0"
|
|
442
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
443
|
+
checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"
|
|
444
|
+
dependencies = [
|
|
445
|
+
"new_debug_unreachable",
|
|
446
|
+
"parking_lot",
|
|
447
|
+
"phf_shared",
|
|
448
|
+
"precomputed-hash",
|
|
449
|
+
"serde",
|
|
450
|
+
]
|
|
451
|
+
|
|
452
|
+
[[package]]
|
|
453
|
+
name = "string_cache_codegen"
|
|
454
|
+
version = "0.6.1"
|
|
455
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
456
|
+
checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"
|
|
457
|
+
dependencies = [
|
|
458
|
+
"phf_generator",
|
|
459
|
+
"phf_shared",
|
|
460
|
+
"proc-macro2",
|
|
461
|
+
"quote",
|
|
462
|
+
]
|
|
463
|
+
|
|
464
|
+
[[package]]
|
|
465
|
+
name = "syn"
|
|
466
|
+
version = "2.0.117"
|
|
467
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
468
|
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
469
|
+
dependencies = [
|
|
470
|
+
"proc-macro2",
|
|
471
|
+
"quote",
|
|
472
|
+
"unicode-ident",
|
|
473
|
+
]
|
|
474
|
+
|
|
475
|
+
[[package]]
|
|
476
|
+
name = "tendril"
|
|
477
|
+
version = "0.5.0"
|
|
478
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
479
|
+
checksum = "c4790fc369d5a530f4b544b094e31388b9b3a37c0f4652ade4505945f5660d24"
|
|
480
|
+
dependencies = [
|
|
481
|
+
"new_debug_unreachable",
|
|
482
|
+
"utf-8",
|
|
483
|
+
]
|
|
484
|
+
|
|
485
|
+
[[package]]
|
|
486
|
+
name = "turbo-dom-parser"
|
|
487
|
+
version = "0.0.1"
|
|
488
|
+
dependencies = [
|
|
489
|
+
"html5ever",
|
|
490
|
+
"markup5ever_rcdom",
|
|
491
|
+
"napi",
|
|
492
|
+
"napi-build",
|
|
493
|
+
"napi-derive",
|
|
494
|
+
"serde",
|
|
495
|
+
"serde-wasm-bindgen",
|
|
496
|
+
"wasm-bindgen",
|
|
497
|
+
]
|
|
498
|
+
|
|
499
|
+
[[package]]
|
|
500
|
+
name = "unicode-ident"
|
|
501
|
+
version = "1.0.24"
|
|
502
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
503
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
504
|
+
|
|
505
|
+
[[package]]
|
|
506
|
+
name = "unicode-segmentation"
|
|
507
|
+
version = "1.13.3"
|
|
508
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
509
|
+
checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
|
|
510
|
+
|
|
511
|
+
[[package]]
|
|
512
|
+
name = "utf-8"
|
|
513
|
+
version = "0.7.6"
|
|
514
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
515
|
+
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
|
|
516
|
+
|
|
517
|
+
[[package]]
|
|
518
|
+
name = "wasm-bindgen"
|
|
519
|
+
version = "0.2.122"
|
|
520
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
521
|
+
checksum = "3ed04576f974d2b2fba0f38c51dbc5518011e38c36bf1143164be765528fd409"
|
|
522
|
+
dependencies = [
|
|
523
|
+
"cfg-if",
|
|
524
|
+
"once_cell",
|
|
525
|
+
"rustversion",
|
|
526
|
+
"wasm-bindgen-macro",
|
|
527
|
+
"wasm-bindgen-shared",
|
|
528
|
+
]
|
|
529
|
+
|
|
530
|
+
[[package]]
|
|
531
|
+
name = "wasm-bindgen-macro"
|
|
532
|
+
version = "0.2.122"
|
|
533
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
534
|
+
checksum = "916151b09da36bd82f6615cbf3a419e2f0ba23a03c6160e8e92eb6bd4aa1dec6"
|
|
535
|
+
dependencies = [
|
|
536
|
+
"quote",
|
|
537
|
+
"wasm-bindgen-macro-support",
|
|
538
|
+
]
|
|
539
|
+
|
|
540
|
+
[[package]]
|
|
541
|
+
name = "wasm-bindgen-macro-support"
|
|
542
|
+
version = "0.2.122"
|
|
543
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
544
|
+
checksum = "299047362ccbfce148b67ab7e73349f77748e00c8296f9542adfad2ad82c5c5e"
|
|
545
|
+
dependencies = [
|
|
546
|
+
"bumpalo",
|
|
547
|
+
"proc-macro2",
|
|
548
|
+
"quote",
|
|
549
|
+
"syn",
|
|
550
|
+
"wasm-bindgen-shared",
|
|
551
|
+
]
|
|
552
|
+
|
|
553
|
+
[[package]]
|
|
554
|
+
name = "wasm-bindgen-shared"
|
|
555
|
+
version = "0.2.122"
|
|
556
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
557
|
+
checksum = "9a929b2c61f11ba3e9bc35b50c1f25cb38e0e892c0c231ae2b8cf78d5dad4437"
|
|
558
|
+
dependencies = [
|
|
559
|
+
"unicode-ident",
|
|
560
|
+
]
|
|
561
|
+
|
|
562
|
+
[[package]]
|
|
563
|
+
name = "web_atoms"
|
|
564
|
+
version = "0.2.4"
|
|
565
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
566
|
+
checksum = "d7cff6eef815df1834fd250e3a2ff436044d82a9f1bc1980ca1dbdf07effc538"
|
|
567
|
+
dependencies = [
|
|
568
|
+
"phf",
|
|
569
|
+
"phf_codegen",
|
|
570
|
+
"string_cache",
|
|
571
|
+
"string_cache_codegen",
|
|
572
|
+
]
|
|
573
|
+
|
|
574
|
+
[[package]]
|
|
575
|
+
name = "windows-link"
|
|
576
|
+
version = "0.2.1"
|
|
577
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
578
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
579
|
+
|
|
580
|
+
[[package]]
|
|
581
|
+
name = "xml5ever"
|
|
582
|
+
version = "0.39.0"
|
|
583
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
584
|
+
checksum = "5ab627f34ff61b80d756180d556f9c68801d836d271b3b8c094504ceca69d221"
|
|
585
|
+
dependencies = [
|
|
586
|
+
"log",
|
|
587
|
+
"markup5ever",
|
|
588
|
+
]
|
package/Cargo.toml
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "turbo-dom-parser"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
description = "html5ever-backed native parser for turbo-dom (Layer 1)"
|
|
6
|
+
|
|
7
|
+
[lib]
|
|
8
|
+
crate-type = ["cdylib", "rlib"]
|
|
9
|
+
|
|
10
|
+
[dependencies]
|
|
11
|
+
# Shared parser core
|
|
12
|
+
html5ever = "0.39"
|
|
13
|
+
markup5ever_rcdom = "0.39"
|
|
14
|
+
|
|
15
|
+
# napi-rs front-end (native addon). Gated so the wasm build doesn't pull it.
|
|
16
|
+
napi = { version = "2", default-features = false, features = ["napi6"], optional = true }
|
|
17
|
+
napi-derive = { version = "2", optional = true }
|
|
18
|
+
|
|
19
|
+
# wasm-bindgen front-end (fallback build).
|
|
20
|
+
wasm-bindgen = { version = "0.2", optional = true }
|
|
21
|
+
serde = { version = "1", features = ["derive"], optional = true }
|
|
22
|
+
serde-wasm-bindgen = { version = "0.6", optional = true }
|
|
23
|
+
|
|
24
|
+
[build-dependencies]
|
|
25
|
+
napi-build = { version = "2", optional = true }
|
|
26
|
+
|
|
27
|
+
[features]
|
|
28
|
+
default = ["napi-bind"]
|
|
29
|
+
napi-bind = ["dep:napi", "dep:napi-derive", "dep:napi-build"]
|
|
30
|
+
wasm-bind = ["dep:wasm-bindgen", "dep:serde", "dep:serde-wasm-bindgen"]
|
|
31
|
+
|
|
32
|
+
[profile.release]
|
|
33
|
+
lto = true
|
|
34
|
+
opt-level = 3
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 turbo-dom
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|