leptris 1.9.424.0-arm-linux → 1.9.425.0-arm-linux
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/Rakefile +1 -1
- data/lib/leptris/version.rb +1 -1
- data/lib/libleptris.so +0 -0
- data/vendor-src/README.md +1 -1
- data/vendor-src/libleptris/CHANGELOG.md +28 -0
- data/vendor-src/libleptris/CMakeLists.txt +1 -1
- data/vendor-src/libleptris/TODO.SOTA.md +40 -5
- data/vendor-src/libleptris/benchmarks/CMakeLists.txt +25 -0
- data/vendor-src/libleptris/benchmarks/dom/bench_zerocopy_text.c +118 -0
- data/vendor-src/libleptris/benchmarks/fixtures/generate_pipeline.rb +120 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pipeline_config.xml +103 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pipeline_feed.xml +166 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pipeline_metanorma.xml +268 -0
- data/vendor-src/libleptris/benchmarks/fixtures/pipeline_records.xml +284 -0
- data/vendor-src/libleptris/benchmarks/workflows/bench_pipeline_shapes.cpp +693 -0
- data/vendor-src/libleptris/docs/MISSION-PLAN.md +5 -0
- data/vendor-src/libleptris/src/leptris/html/html_parse.c +10 -1
- data/vendor-src/libleptris/src/leptris/xpath/evaluator_path.c +8 -2
- data/vendor-src/libleptris/src/leptris/xpath/functions.c +15 -3
- data/vendor-src/libleptris/src/leptris/xslt/xslt_parse.c +36 -16
- data/vendor-src/libleptris/test/CMakeLists.txt +1 -1
- data/vendor-src/libleptris/test/differential/README.md +7 -7
- data/vendor-src/libleptris/test/differential/corpus/01-namespaces.xml +8 -0
- data/vendor-src/libleptris/test/differential/corpus/02-entities-predef.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/03-entities-numeric.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/04-cdata.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/05-comments-pi.xml +3 -0
- data/vendor-src/libleptris/test/differential/corpus/06-doctype-internal.xml +6 -0
- data/vendor-src/libleptris/test/differential/corpus/07-unicode.xml +2 -0
- data/vendor-src/libleptris/test/differential/corpus/08-deep-nesting.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/09-mixed-content.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/10-big-attrs.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/11-whitespace.xml +6 -0
- data/vendor-src/libleptris/test/differential/corpus/12-dup-xmlns.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/13-custom-dtd-entity.xml +2 -0
- data/vendor-src/libleptris/test/differential/corpus/14-processing-instr-xml-decl.xml +2 -0
- data/vendor-src/libleptris/test/differential/corpus/15-empty-and-selfclose.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/16-attrs-special-chars.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/17-rss-like.xml +2 -0
- data/vendor-src/libleptris/test/differential/corpus/18-soap-like.xml +5 -0
- data/vendor-src/libleptris/test/differential/corpus/19-xinclude.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/20-single-root.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/21-text-only-elems.xml +1 -0
- data/vendor-src/libleptris/test/differential/corpus/22-long-text.xml +1 -0
- data/vendor-src/libleptris/test/differential/package.json +1 -1
- data/vendor-src/libleptris/test/differential/rs-runner/Cargo.lock +217 -0
- data/vendor-src/libleptris/test/differential/rs-runner/Cargo.toml +18 -0
- data/vendor-src/libleptris/test/differential/rs-runner/run.rs +94 -0
- data/vendor-src/libleptris/test/differential/run.mjs +44 -0
- data/vendor-src/libleptris/test/differential/run.py +44 -0
- data/vendor-src/libleptris/test/differential/run.rb +44 -0
- data/vendor-src/libleptris/test/fixtures/differential/01-namespaces.xml +8 -0
- data/vendor-src/libleptris/test/fixtures/differential/02-entities-predef.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/03-entities-numeric.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/04-cdata.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/05-comments-pi.xml +3 -0
- data/vendor-src/libleptris/test/fixtures/differential/06-doctype-internal.xml +6 -0
- data/vendor-src/libleptris/test/fixtures/differential/07-unicode.xml +2 -0
- data/vendor-src/libleptris/test/fixtures/differential/08-deep-nesting.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/09-mixed-content.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/10-big-attrs.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/11-whitespace.xml +6 -0
- data/vendor-src/libleptris/test/fixtures/differential/12-dup-xmlns.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/13-custom-dtd-entity.xml +2 -0
- data/vendor-src/libleptris/test/fixtures/differential/14-processing-instr-xml-decl.xml +2 -0
- data/vendor-src/libleptris/test/fixtures/differential/15-empty-and-selfclose.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/16-attrs-special-chars.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/17-rss-like.xml +2 -0
- data/vendor-src/libleptris/test/fixtures/differential/18-soap-like.xml +5 -0
- data/vendor-src/libleptris/test/fixtures/differential/19-xinclude.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/20-single-root.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/21-text-only-elems.xml +1 -0
- data/vendor-src/libleptris/test/fixtures/differential/22-long-text.xml +1 -0
- data/vendor-src/libleptris/test/fuzz/corpus/html_foreign_cdata_short_opener.bin +0 -0
- data/vendor-src/libleptris/test/fuzz/corpus/seed1 +1 -0
- data/vendor-src/libleptris/test/fuzz/corpus/seed2 +1 -0
- data/vendor-src/libleptris/test/fuzz/corpus/xslt_empty_match_template_leak.xml +1 -0
- data/vendor-src/libleptris/test/fuzz/corpus/xslt_union_number_head_segv.xml +0 -0
- data/vendor-src/libleptris/test/fuzz/fuzz_html.c +39 -0
- data/vendor-src/libleptris/test/fuzz/fuzz_xslt.c +36 -0
- data/vendor-src/libleptris/test/html/test_html.cpp +49 -0
- data/vendor-src/libleptris/test/xpath/test_xpath.cpp +32 -0
- data/vendor-src/libleptris/test/xpath/test_xslt.cpp +33 -0
- data/vendor-src/libleptris/vcpkg.json +1 -1
- metadata +62 -1
|
@@ -170,7 +170,12 @@ tag that says so.
|
|
|
170
170
|
| B1 build row | `wt/460-harness/build_bench.rb` | 2026-10-21 | **~1.9x red** (sota/04 after five levers; honest baseline re-measured 2.72x this day — the old 1.86x record is not reproducible) |
|
|
171
171
|
| B3 pipeline row (parse→query→serialize) | `wt/460-harness/pipeline_bench.rb` | 2026-10-21 | **green** — 0.533-0.573x of Nokogiri's time (~1.8x faster), three runs |
|
|
172
172
|
| B3 pipeline row (build→transform, XSLT) | `wt/460-harness/xslt_pipeline_bench.rb` | 2026-10-21 | **green** — 0.492-0.515x of Nokogiri's time (~2x faster), three runs |
|
|
173
|
+
| B3 pipeline shape metanorma-compile | `benchmarks/workflows/bench_pipeline_shapes.cpp` | 2026-11-16 | **green** — 0.386x libxml2 (~2.6x faster), macos leg; 2.39x pugixml (the conformance-floor rows, #1436) |
|
|
174
|
+
| B3 pipeline shape config-validation | `benchmarks/workflows/bench_pipeline_shapes.cpp` | 2026-11-16 | **green** — 0.299x libxml2 (~3.3x faster), macos leg; 2.76x pugixml |
|
|
175
|
+
| B3 pipeline shape feed-normalization | `benchmarks/workflows/bench_pipeline_shapes.cpp` | 2026-11-16 | **green** — 0.326x libxml2 (~3.1x faster), macos leg; 2.06x pugixml |
|
|
176
|
+
| B3 pipeline shape extract-transform | `benchmarks/workflows/bench_pipeline_shapes.cpp` | 2026-11-16 | **green** — 0.195x libxml2 (~5.1x faster), macos leg; 2.04x pugixml |
|
|
173
177
|
| B2 walk row | `wt/460-harness/walk_read_bench.rb` | 2026-10-20 | 0.88x (green) |
|
|
178
|
+
| B5 zero-copy text verdict | `benchmarks/dom/bench_zerocopy_text.c` | 2026-11-16 | **adopted** — borrowed beats forced-copy on both rows: parse 2.66x, walk+read 2.39x (ABBA x2 medians; #2053) |
|
|
174
179
|
| Test-suite runtime (fidelity) | `ctest`, 2074 cases | 2026-10-21 | 66.0 s serial → 31.0 s `-j4` (same 2074/2074; **shipped in v1.9.378**) |
|
|
175
180
|
| XPath index vs mutations | `XPathIndexInvalidation.*` | 2026-10-21 | green — splice paths invalidate (PR #1802; ruby#519 closed on the 1.9.378.0 gem) |
|
|
176
181
|
| Rides 1.9.379 | registries | 2026-10-21 | rubygems/PyPI 1.9.379.0, npm 0.1.22 (engine v1.9.379; v1.9.378 rides blocked by the GCC-14 cast, fixed in #1806) |
|
|
@@ -6100,7 +6100,16 @@ static LeptrisDocument html_parse_shared(
|
|
|
6100
6100
|
/* #659: CDATA in foreign content is TEXT (raw, no
|
|
6101
6101
|
* entity decoding); in HTML content it stays the
|
|
6102
6102
|
* bogus-comment skip below. */
|
|
6103
|
-
|
|
6103
|
+
/* The opener must fully match AND fit: the fuzzer
|
|
6104
|
+
* (SOTA C1 #2051, fuzz_html) drove a 3-byte "<!x" in
|
|
6105
|
+
* foreign content here — cs = p + 9 wrapped past end
|
|
6106
|
+
* and clen went negative (ASAN negative-size-param in
|
|
6107
|
+
* leptris_text_create). HTML5 §13.2.5.42: only a
|
|
6108
|
+
* real "<![CDATA[" opener is a CDATA section in
|
|
6109
|
+
* foreign content; every other "<!" is the
|
|
6110
|
+
* bogus-comment path below. */
|
|
6111
|
+
if (b.whatwg && h_cur_ns(&b) != H_NS_HTML &&
|
|
6112
|
+
end - p >= 9 && memcmp(p, "<![CDATA[", 9) == 0) {
|
|
6104
6113
|
const char* cs = p + 9; /* past "<![CDATA[" */
|
|
6105
6114
|
const char* ce = cs;
|
|
6106
6115
|
while (ce + 3 <= end && !(ce[0] == ']' &&
|
|
@@ -1160,10 +1160,16 @@ struct leptris_xpath_result* evaluate_location_path(XPathContext* ctx,
|
|
|
1160
1160
|
if (head->type != XPATH_RESULT_NODESET) {
|
|
1161
1161
|
/* A non-nodeset head: per XPath 1.0 the path is applied
|
|
1162
1162
|
* to the head's VALUE as the context (rare; treat as
|
|
1163
|
-
* empty — the common forms are nodeset heads).
|
|
1163
|
+
* empty — the common forms are nodeset heads). The
|
|
1164
|
+
* result must CARRY its empty nodeset: a NODESET-typed
|
|
1165
|
+
* result with a NULL union crashed the union operator's
|
|
1166
|
+
* ownership transfer (nightly 43848591647, "0//i|em"). */
|
|
1164
1167
|
xpath_result_free(head);
|
|
1165
1168
|
xpath_nodeset_free(current);
|
|
1166
|
-
|
|
1169
|
+
struct leptris_xpath_result* empty =
|
|
1170
|
+
xpath_result_new(XPATH_RESULT_NODESET);
|
|
1171
|
+
if (empty) empty->value.nodeset_value = xpath_nodeset_new();
|
|
1172
|
+
return empty;
|
|
1167
1173
|
}
|
|
1168
1174
|
if (head->value.nodeset_value) {
|
|
1169
1175
|
XPathNodeSet* source = head->value.nodeset_value;
|
|
@@ -2583,7 +2583,13 @@ static struct leptris_xpath_result* xpath_func_floor(XPathContext* context,
|
|
|
2583
2583
|
(!arg_result->value.nodeset_value ||
|
|
2584
2584
|
xpath_nodeset_count(arg_result->value.nodeset_value) == 0)) {
|
|
2585
2585
|
xpath_result_free(arg_result);
|
|
2586
|
-
|
|
2586
|
+
/* The empty result must CARRY its nodeset — a NULL union
|
|
2587
|
+
* crashes strict consumers (the union operator, nightly
|
|
2588
|
+
* 43848591647). */
|
|
2589
|
+
struct leptris_xpath_result* empty =
|
|
2590
|
+
xpath_result_new(XPATH_RESULT_NODESET);
|
|
2591
|
+
if (empty) empty->value.nodeset_value = xpath_nodeset_new();
|
|
2592
|
+
return empty;
|
|
2587
2593
|
}
|
|
2588
2594
|
|
|
2589
2595
|
int iv_int = arg_result->is_int;
|
|
@@ -2634,7 +2640,10 @@ static struct leptris_xpath_result* xpath_func_ceiling(XPathContext* context,
|
|
|
2634
2640
|
(!arg_result->value.nodeset_value ||
|
|
2635
2641
|
xpath_nodeset_count(arg_result->value.nodeset_value) == 0)) {
|
|
2636
2642
|
xpath_result_free(arg_result);
|
|
2637
|
-
|
|
2643
|
+
struct leptris_xpath_result* empty =
|
|
2644
|
+
xpath_result_new(XPATH_RESULT_NODESET);
|
|
2645
|
+
if (empty) empty->value.nodeset_value = xpath_nodeset_new();
|
|
2646
|
+
return empty;
|
|
2638
2647
|
}
|
|
2639
2648
|
|
|
2640
2649
|
int iv_int = arg_result->is_int;
|
|
@@ -2687,7 +2696,10 @@ static struct leptris_xpath_result* xpath_func_round(XPathContext* context,
|
|
|
2687
2696
|
(!arg_result->value.nodeset_value ||
|
|
2688
2697
|
arg_result->value.nodeset_value->count == 0)) {
|
|
2689
2698
|
xpath_result_free(arg_result);
|
|
2690
|
-
|
|
2699
|
+
struct leptris_xpath_result* empty =
|
|
2700
|
+
xpath_result_new(XPATH_RESULT_NODESET);
|
|
2701
|
+
if (empty) empty->value.nodeset_value = xpath_nodeset_new();
|
|
2702
|
+
return empty;
|
|
2691
2703
|
}
|
|
2692
2704
|
|
|
2693
2705
|
int arg_is_float = xpath_result_is_float(arg_result);
|
|
@@ -226,6 +226,7 @@ static XsltInstr* parse_instruction(SheetParser* sp, LeptrisElement e);
|
|
|
226
226
|
static XsltInstr* parse_content_ws(SheetParser* sp, LeptrisElement list,
|
|
227
227
|
int preserve_ws);
|
|
228
228
|
#define parse_content(sp, list) parse_content_ws(sp, list, 0)
|
|
229
|
+
static void free_template(XsltTemplate* t);
|
|
229
230
|
|
|
230
231
|
|
|
231
232
|
/* §4/§5.3: collect the in-scope namespace bindings for a stylesheet
|
|
@@ -1121,16 +1122,27 @@ static void add_template(SheetParser* sp, LeptrisElement e) {
|
|
|
1121
1122
|
}
|
|
1122
1123
|
|
|
1123
1124
|
if (match) {
|
|
1124
|
-
if (!*match) { sp->errors = 1;
|
|
1125
|
+
if (!*match) { sp->errors = 1; free_template(t); return; }
|
|
1125
1126
|
size_t nalt = 0;
|
|
1126
1127
|
char** alts = split_alternatives(match, &nalt);
|
|
1127
1128
|
XsltPattern** tail = &t->matches;
|
|
1128
1129
|
for (size_t i = 0; i < nalt; i++) {
|
|
1129
1130
|
char* trimmed = alts[i];
|
|
1130
1131
|
while (*trimmed == ' ') trimmed++;
|
|
1131
|
-
|
|
1132
|
+
/* the fuzzer (SOTA C1, leak-f4fb611c) caught both
|
|
1133
|
+
* continues leaking the part string: an empty
|
|
1134
|
+
* alternative ("a| |b" — the 1-byte "") and the
|
|
1135
|
+
* pattern-calloc failure each skipped the loop tail's
|
|
1136
|
+
* free */
|
|
1137
|
+
if (!*trimmed) {
|
|
1138
|
+
free(alts[i]);
|
|
1139
|
+
continue;
|
|
1140
|
+
}
|
|
1132
1141
|
XsltPattern* p = (XsltPattern*)calloc(1, sizeof(*p));
|
|
1133
|
-
if (!p)
|
|
1142
|
+
if (!p) {
|
|
1143
|
+
free(alts[i]);
|
|
1144
|
+
continue;
|
|
1145
|
+
}
|
|
1134
1146
|
p->expr = leptris_xpath_compile(trimmed);
|
|
1135
1147
|
if (!p->expr) {
|
|
1136
1148
|
/* Bad pattern: fail the whole stylesheet. */
|
|
@@ -1849,6 +1861,26 @@ static void free_instr_list(XsltInstr* list) {
|
|
|
1849
1861
|
}
|
|
1850
1862
|
}
|
|
1851
1863
|
|
|
1864
|
+
/* The one template teardown: the sheet free and the add_template
|
|
1865
|
+
* abort (match="" — nightly run 43840763745) both walk the same
|
|
1866
|
+
* fields; the abort previously freed the bare struct and dropped
|
|
1867
|
+
* the already-built body + ns context. */
|
|
1868
|
+
static void free_template(XsltTemplate* t) {
|
|
1869
|
+
XsltPattern* p = t->matches;
|
|
1870
|
+
while (p) {
|
|
1871
|
+
XsltPattern* pn = p->next;
|
|
1872
|
+
if (p->expr) leptris_xpath_compiled_free(p->expr);
|
|
1873
|
+
xslt_pattern_steps_free(p);
|
|
1874
|
+
free(p);
|
|
1875
|
+
p = pn;
|
|
1876
|
+
}
|
|
1877
|
+
free_instr_list(t->body);
|
|
1878
|
+
if (t->ns) leptris_xpath_ns_set_free(t->ns);
|
|
1879
|
+
free((void*)t->name);
|
|
1880
|
+
free((void*)t->mode);
|
|
1881
|
+
free(t);
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1852
1884
|
/* ---- dispatch indexes (#682) ----
|
|
1853
1885
|
*
|
|
1854
1886
|
* Named lookup: open-addressed FNV-1a map. Inserts walk the list in
|
|
@@ -2101,19 +2133,7 @@ void xslt_stylesheet_free(XsltStylesheet* sheet) {
|
|
|
2101
2133
|
XsltTemplate* t = sheet->templates;
|
|
2102
2134
|
while (t) {
|
|
2103
2135
|
XsltTemplate* n = t->next;
|
|
2104
|
-
|
|
2105
|
-
while (p) {
|
|
2106
|
-
XsltPattern* pn = p->next;
|
|
2107
|
-
if (p->expr) leptris_xpath_compiled_free(p->expr);
|
|
2108
|
-
xslt_pattern_steps_free(p);
|
|
2109
|
-
free(p);
|
|
2110
|
-
p = pn;
|
|
2111
|
-
}
|
|
2112
|
-
free_instr_list(t->body);
|
|
2113
|
-
if (t->ns) leptris_xpath_ns_set_free(t->ns);
|
|
2114
|
-
free((void*)t->name);
|
|
2115
|
-
free((void*)t->mode);
|
|
2116
|
-
free(t);
|
|
2136
|
+
free_template(t);
|
|
2117
2137
|
t = n;
|
|
2118
2138
|
}
|
|
2119
2139
|
while (sheet->keys) {
|
|
@@ -317,7 +317,7 @@ endif()
|
|
|
317
317
|
# nightly fuzz workflow, which invokes them at the build root —
|
|
318
318
|
# subdirectory targets land under build/test/ by default).
|
|
319
319
|
if(LEPTRIS_ENABLE_FUZZING)
|
|
320
|
-
foreach(target fuzz_parse fuzz_mutate fuzz_xpath)
|
|
320
|
+
foreach(target fuzz_parse fuzz_mutate fuzz_xpath fuzz_xslt fuzz_html)
|
|
321
321
|
add_executable(${target}
|
|
322
322
|
${CMAKE_CURRENT_SOURCE_DIR}/fuzz/${target}.c)
|
|
323
323
|
target_link_libraries(${target} PRIVATE leptris)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Differential corpus (TODO.SOTA A6 / Gate D3)
|
|
2
2
|
|
|
3
|
-
Universality proof for the
|
|
3
|
+
Universality proof for the four published bindings — **ruby**
|
|
4
4
|
(leptris-ruby), **python** (leptris-py), **typescript/wasm**
|
|
5
|
-
(leptris-ts) — driven from ONE curated corpus. Each runner parses every
|
|
5
|
+
(leptris-ts) and **rust** (leptris-rs, #2048 slice 3) — driven from ONE curated corpus. Each runner parses every
|
|
6
6
|
document, evaluates the document's XPath, and prints one canonical line:
|
|
7
7
|
|
|
8
8
|
docname|xpath_count|serialized_sha256
|
|
9
9
|
|
|
10
|
-
CI (`.github/workflows/differential.yml`) runs all
|
|
10
|
+
CI (`.github/workflows/differential.yml`) runs all four runners and
|
|
11
11
|
`diff`s their outputs **byte-for-byte**; any difference fails the job.
|
|
12
12
|
|
|
13
13
|
## Corpus (`corpus/`)
|
|
@@ -23,8 +23,8 @@ CI (`.github/workflows/differential.yml`) runs all three runners and
|
|
|
23
23
|
| `mixed_deep.xml` | new | mixed content, numeric charrefs (π, ) |
|
|
24
24
|
| `xpath_target.xml` | new | predicate XPath over attributes/status |
|
|
25
25
|
|
|
26
|
-
Per-document XPath (identical in all
|
|
27
|
-
resolved from in-scope declarations, which all
|
|
26
|
+
Per-document XPath (identical in all four runners — prefix bindings are
|
|
27
|
+
resolved from in-scope declarations, which all four bindings do):
|
|
28
28
|
|
|
29
29
|
basic.xml count(//ns:elem)
|
|
30
30
|
cdata.xml count(//text)
|
|
@@ -41,7 +41,7 @@ resolved from in-scope declarations, which all three bindings do):
|
|
|
41
41
|
python3 test/differential/run.py # pip install leptris
|
|
42
42
|
(cd test/differential && npm install && node run.mjs) # npm install leptris
|
|
43
43
|
|
|
44
|
-
All
|
|
44
|
+
All four must print identical lines; verify with:
|
|
45
45
|
|
|
46
46
|
diff <(ruby run.rb) <(python3 run.py) && diff <(ruby run.rb) <(node run.mjs)
|
|
47
47
|
|
|
@@ -53,7 +53,7 @@ All three must print identical lines; verify with:
|
|
|
53
53
|
| python | pip leptris **1.9.379.0** | 1.9.379 |
|
|
54
54
|
| node/wasm | npm leptris **0.1.22** | 1.9.379 |
|
|
55
55
|
|
|
56
|
-
Canonical output (all
|
|
56
|
+
Canonical output (all four, byte-identical):
|
|
57
57
|
|
|
58
58
|
basic.xml|1|888f291b7062dbd2e416a68a6f9cf412da6426dbc8a39b372d22f32e1192598a
|
|
59
59
|
cdata.xml|1|21e22f173b8f0f4169dd4e337a24201c75416ddae12b690050888ebf3f3b0b81
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<root xmlns="urn:default" xmlns:p="urn:p" xmlns:q="urn:p">
|
|
3
|
+
<a p:attr="prefixed" q:other="redeclared-same-uri">text</a>
|
|
4
|
+
<b>plain</b>
|
|
5
|
+
<c xml:lang="en" xml:space="preserve"> spaced </c>
|
|
6
|
+
<empty/>
|
|
7
|
+
<empty2></empty2>
|
|
8
|
+
</root>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<root><amp>a & b</amp><lt>1 < 2</lt><gt>x > y</gt><apos>'q'</apos><quote>"r"</quote></root>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<root><dec>ABC</dec><hex>A😀</hex></root>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<root><raw><![CDATA[if (a < b && c > d) { x = "<tag>&"; }]]></raw><after>tail</after></root>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<l1><l2><l3><l4><l5><l6><l7><l8><l9><l10>deep</l10></l9></l8></l7></l6></l5></l4></l3></l2></l1>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<para>some <b>bold</b> and <i>italic</i> text with <code>x=1</code> inside</para>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<root><e a="1" b="2" c="3" d="4" e="5" f="6" g="7" h="8" i="9" j="10" k="data-value" l="urn:some-ns-value" m="longer attribute value here"/></root>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<root xmlns:x="urn:1"><a xmlns:x="urn:1"><b x:k="inner"/></a><c xmlns:x="urn:2"><b x:k="outer"/></c></root>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<r><e1/><e2 /><e3></e3><e4> </e4><e5><e6/></e5></r>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<root><e plain="quoted "inside"" entity="a&b" tab="x	y"/></root>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<root xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include href="inc.xml" parse="xml"/><keep>root content</keep></root>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<only/>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<doc><s1>a</s1><s2>b</s2><s3>c</s3><s4>d</s4><s5>e</s5></doc>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<root><p>The quick brown fox jumps over the lazy dog. </p><p>Pack my box with five dozen liquor jugs.</p></root>
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "block-buffer"
|
|
7
|
+
version = "0.10.4"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"generic-array",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "bumpalo"
|
|
16
|
+
version = "3.20.4"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "87a0cf66fd1eb2fb7b822cb78370d82303750809bc6ba855f3f58e517d3238db"
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "cc"
|
|
22
|
+
version = "1.11.2"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45"
|
|
25
|
+
dependencies = [
|
|
26
|
+
"find-msvc-tools",
|
|
27
|
+
"shlex",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[[package]]
|
|
31
|
+
name = "cfg-if"
|
|
32
|
+
version = "1.0.5"
|
|
33
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
34
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
35
|
+
|
|
36
|
+
[[package]]
|
|
37
|
+
name = "cpufeatures"
|
|
38
|
+
version = "0.2.17"
|
|
39
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
40
|
+
checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
|
|
41
|
+
dependencies = [
|
|
42
|
+
"libc",
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
[[package]]
|
|
46
|
+
name = "crypto-common"
|
|
47
|
+
version = "0.1.7"
|
|
48
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
49
|
+
checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
|
|
50
|
+
dependencies = [
|
|
51
|
+
"generic-array",
|
|
52
|
+
"typenum",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
[[package]]
|
|
56
|
+
name = "digest"
|
|
57
|
+
version = "0.10.7"
|
|
58
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
59
|
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
|
60
|
+
dependencies = [
|
|
61
|
+
"block-buffer",
|
|
62
|
+
"crypto-common",
|
|
63
|
+
]
|
|
64
|
+
|
|
65
|
+
[[package]]
|
|
66
|
+
name = "find-msvc-tools"
|
|
67
|
+
version = "0.1.15"
|
|
68
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
69
|
+
checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48"
|
|
70
|
+
|
|
71
|
+
[[package]]
|
|
72
|
+
name = "generic-array"
|
|
73
|
+
version = "0.14.7"
|
|
74
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
75
|
+
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
|
76
|
+
dependencies = [
|
|
77
|
+
"typenum",
|
|
78
|
+
"version_check",
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
[[package]]
|
|
82
|
+
name = "leptris"
|
|
83
|
+
version = "1.6.19"
|
|
84
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
85
|
+
checksum = "61b25481379c8b415da3b2e5085f25e68bfb73afa22630367b45cb19856c7051"
|
|
86
|
+
dependencies = [
|
|
87
|
+
"cc",
|
|
88
|
+
"wasm-bindgen",
|
|
89
|
+
]
|
|
90
|
+
|
|
91
|
+
[[package]]
|
|
92
|
+
name = "leptris-differential-runner"
|
|
93
|
+
version = "0.1.0"
|
|
94
|
+
dependencies = [
|
|
95
|
+
"leptris",
|
|
96
|
+
"sha2",
|
|
97
|
+
]
|
|
98
|
+
|
|
99
|
+
[[package]]
|
|
100
|
+
name = "libc"
|
|
101
|
+
version = "0.2.191"
|
|
102
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
103
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
104
|
+
|
|
105
|
+
[[package]]
|
|
106
|
+
name = "proc-macro2"
|
|
107
|
+
version = "1.0.107"
|
|
108
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
109
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
110
|
+
dependencies = [
|
|
111
|
+
"unicode-ident",
|
|
112
|
+
]
|
|
113
|
+
|
|
114
|
+
[[package]]
|
|
115
|
+
name = "quote"
|
|
116
|
+
version = "1.0.47"
|
|
117
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
118
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
119
|
+
dependencies = [
|
|
120
|
+
"proc-macro2",
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
[[package]]
|
|
124
|
+
name = "rustversion"
|
|
125
|
+
version = "1.0.23"
|
|
126
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
127
|
+
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
128
|
+
|
|
129
|
+
[[package]]
|
|
130
|
+
name = "sha2"
|
|
131
|
+
version = "0.10.9"
|
|
132
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
133
|
+
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
|
134
|
+
dependencies = [
|
|
135
|
+
"cfg-if",
|
|
136
|
+
"cpufeatures",
|
|
137
|
+
"digest",
|
|
138
|
+
]
|
|
139
|
+
|
|
140
|
+
[[package]]
|
|
141
|
+
name = "shlex"
|
|
142
|
+
version = "2.0.1"
|
|
143
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
144
|
+
checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
|
|
145
|
+
|
|
146
|
+
[[package]]
|
|
147
|
+
name = "syn"
|
|
148
|
+
version = "3.0.10"
|
|
149
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
150
|
+
checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
|
|
151
|
+
dependencies = [
|
|
152
|
+
"proc-macro2",
|
|
153
|
+
"quote",
|
|
154
|
+
"unicode-ident",
|
|
155
|
+
]
|
|
156
|
+
|
|
157
|
+
[[package]]
|
|
158
|
+
name = "typenum"
|
|
159
|
+
version = "1.20.1"
|
|
160
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
+
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
|
|
162
|
+
|
|
163
|
+
[[package]]
|
|
164
|
+
name = "unicode-ident"
|
|
165
|
+
version = "1.0.27"
|
|
166
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
167
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
168
|
+
|
|
169
|
+
[[package]]
|
|
170
|
+
name = "version_check"
|
|
171
|
+
version = "0.9.5"
|
|
172
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
173
|
+
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
174
|
+
|
|
175
|
+
[[package]]
|
|
176
|
+
name = "wasm-bindgen"
|
|
177
|
+
version = "0.2.130"
|
|
178
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
179
|
+
checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c"
|
|
180
|
+
dependencies = [
|
|
181
|
+
"cfg-if",
|
|
182
|
+
"rustversion",
|
|
183
|
+
"wasm-bindgen-macro",
|
|
184
|
+
"wasm-bindgen-shared",
|
|
185
|
+
]
|
|
186
|
+
|
|
187
|
+
[[package]]
|
|
188
|
+
name = "wasm-bindgen-macro"
|
|
189
|
+
version = "0.2.130"
|
|
190
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
+
checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9"
|
|
192
|
+
dependencies = [
|
|
193
|
+
"quote",
|
|
194
|
+
"wasm-bindgen-macro-support",
|
|
195
|
+
]
|
|
196
|
+
|
|
197
|
+
[[package]]
|
|
198
|
+
name = "wasm-bindgen-macro-support"
|
|
199
|
+
version = "0.2.130"
|
|
200
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
201
|
+
checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a"
|
|
202
|
+
dependencies = [
|
|
203
|
+
"bumpalo",
|
|
204
|
+
"proc-macro2",
|
|
205
|
+
"quote",
|
|
206
|
+
"syn",
|
|
207
|
+
"wasm-bindgen-shared",
|
|
208
|
+
]
|
|
209
|
+
|
|
210
|
+
[[package]]
|
|
211
|
+
name = "wasm-bindgen-shared"
|
|
212
|
+
version = "0.2.130"
|
|
213
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
+
checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e"
|
|
215
|
+
dependencies = [
|
|
216
|
+
"unicode-ident",
|
|
217
|
+
]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "leptris-differential-runner"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
publish = false
|
|
6
|
+
|
|
7
|
+
[[bin]]
|
|
8
|
+
name = "run"
|
|
9
|
+
path = "run.rs"
|
|
10
|
+
|
|
11
|
+
[dependencies]
|
|
12
|
+
# The published rs binding; the pin rides every train with the other
|
|
13
|
+
# binding pins (the A6 law). '=' keeps the gate reproducible.
|
|
14
|
+
leptris = "=1.6.19"
|
|
15
|
+
sha2 = "0.10"
|
|
16
|
+
|
|
17
|
+
[profile.release]
|
|
18
|
+
debug = false
|