polyxml 0.37.0__tar.gz → 0.38.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.
- {polyxml-0.37.0 → polyxml-0.38.0}/Cargo.lock +6 -6
- {polyxml-0.37.0 → polyxml-0.38.0}/Cargo.toml +1 -1
- {polyxml-0.37.0 → polyxml-0.38.0}/PKG-INFO +1 -1
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/codegen/cpp/mod.rs +22 -4
- {polyxml-0.37.0 → polyxml-0.38.0}/pyproject.toml +1 -1
- {polyxml-0.37.0 → polyxml-0.38.0}/README.md +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/Cargo.toml +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/README.md +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/benches/core_benchmarks.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/benches/support/tag_dispatch_fixtures.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/benches/tag_dispatch.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/codegen/csharp/mod.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/codegen/go/mod.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/codegen/java/codec.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/codegen/java/mod.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/codegen/java/models.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/codegen/mod.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/codegen/python/aot.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/codegen/python/mod.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/codegen/rust/mod.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/codegen/typescript/mod.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/converters.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/error.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/integer.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/ir/chunker.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/ir/mod.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/ir/particle.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/ir/tarjan.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/json.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/lib.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/parser.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/pattern.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/schema.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/schema_parser/mod.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/schema_parser/upa.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/serializer.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/transcoder.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/src/value.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/fixtures/lexical_union.xsd +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/fixtures/mixed_content.xsd +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/fixtures/ts_mixed_content_inheritance.xsd +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_adversarial_identifiers.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_any_attribute.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_any_element.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_conformance.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_core.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_corpus_regressions.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_cpp_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_csharp_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_default_literal_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_enum_literal_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_go_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_inherited_simple_content.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_inherited_text_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_java_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_json.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_lexical_lists.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_lexical_union_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_mixed_branch_lookup.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_mixed_content.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_mixed_nil.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_namespace_entities.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_pattern_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_python_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_qualified_attributes.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_runtime_fast_paths.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_rust_codecs.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_rust_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_schema_attribute_entities.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_schema_audit.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_schema_ir.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_security.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_temporal_union.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_transcoder.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_ts_codegen.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_ubl_csharp.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_unbounded_choice.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_upa.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_value_constraints.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_variant_registry.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_xsi_type.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-python/Cargo.toml +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-python/README.md +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-python/benches/aot_vs_dataclass.py +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-python/src/lib.rs +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-python/tests/test_binary_fields.py +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-python/tests/test_conformance.py +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-python/tests/test_generated_models.py +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-python/tests/test_json.py +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-python/tests/test_mixed_content.py +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-python/tests/test_polyxml.py +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-python/tests/test_xsi_type.py +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/python/polyxml/AGENT_GUIDE.md +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/python/polyxml/__init__.py +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/python/polyxml/compat/__init__.py +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/python/polyxml/compat/xsdata.py +0 -0
- {polyxml-0.37.0 → polyxml-0.38.0}/python/polyxml/py.typed +0 -0
|
@@ -610,7 +610,7 @@ dependencies = [
|
|
|
610
610
|
|
|
611
611
|
[[package]]
|
|
612
612
|
name = "polyxml"
|
|
613
|
-
version = "0.
|
|
613
|
+
version = "0.38.0"
|
|
614
614
|
dependencies = [
|
|
615
615
|
"criterion",
|
|
616
616
|
"heck",
|
|
@@ -631,14 +631,14 @@ dependencies = [
|
|
|
631
631
|
|
|
632
632
|
[[package]]
|
|
633
633
|
name = "polyxml-c"
|
|
634
|
-
version = "0.
|
|
634
|
+
version = "0.38.0"
|
|
635
635
|
dependencies = [
|
|
636
636
|
"polyxml",
|
|
637
637
|
]
|
|
638
638
|
|
|
639
639
|
[[package]]
|
|
640
640
|
name = "polyxml-cli"
|
|
641
|
-
version = "0.
|
|
641
|
+
version = "0.38.0"
|
|
642
642
|
dependencies = [
|
|
643
643
|
"clap",
|
|
644
644
|
"glob",
|
|
@@ -652,7 +652,7 @@ dependencies = [
|
|
|
652
652
|
|
|
653
653
|
[[package]]
|
|
654
654
|
name = "polyxml-js"
|
|
655
|
-
version = "0.
|
|
655
|
+
version = "0.38.0"
|
|
656
656
|
dependencies = [
|
|
657
657
|
"napi",
|
|
658
658
|
"napi-build",
|
|
@@ -662,7 +662,7 @@ dependencies = [
|
|
|
662
662
|
|
|
663
663
|
[[package]]
|
|
664
664
|
name = "polyxml-python"
|
|
665
|
-
version = "0.
|
|
665
|
+
version = "0.38.0"
|
|
666
666
|
dependencies = [
|
|
667
667
|
"base64",
|
|
668
668
|
"hex",
|
|
@@ -674,7 +674,7 @@ dependencies = [
|
|
|
674
674
|
|
|
675
675
|
[[package]]
|
|
676
676
|
name = "polyxml-wasm"
|
|
677
|
-
version = "0.
|
|
677
|
+
version = "0.38.0"
|
|
678
678
|
dependencies = [
|
|
679
679
|
"polyxml",
|
|
680
680
|
"quick-xml",
|
|
@@ -409,11 +409,29 @@ impl CppCodegen {
|
|
|
409
409
|
files.push((format!("{}.hpp", stem), self.generate_header(ir)));
|
|
410
410
|
if let Some(chunk_size) = self.split_units {
|
|
411
411
|
let plan = ir.partition_topological_chunks(chunk_size);
|
|
412
|
+
let mut large_union_idx = 0usize;
|
|
412
413
|
for chunk in &plan.chunks {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
414
|
+
let mut regular_types = Vec::with_capacity(chunk.types.len());
|
|
415
|
+
for qname in &chunk.types {
|
|
416
|
+
if matches!(
|
|
417
|
+
ir.types.get(qname),
|
|
418
|
+
Some(TypeDef::Union(u)) if u.branches.len() > 64
|
|
419
|
+
) {
|
|
420
|
+
files.push((
|
|
421
|
+
format!("{}_union_{:02}.cpp", stem, large_union_idx),
|
|
422
|
+
self.generate_chunk_impl(ir, stem, std::slice::from_ref(qname)),
|
|
423
|
+
));
|
|
424
|
+
large_union_idx += 1;
|
|
425
|
+
} else {
|
|
426
|
+
regular_types.push(qname.clone());
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
if !regular_types.is_empty() {
|
|
430
|
+
files.push((
|
|
431
|
+
format!("{}_{}.cpp", stem, chunk.name),
|
|
432
|
+
self.generate_chunk_impl(ir, stem, ®ular_types),
|
|
433
|
+
));
|
|
434
|
+
}
|
|
417
435
|
}
|
|
418
436
|
}
|
|
419
437
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/benches/support/tag_dispatch_fixtures.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_inherited_simple_content.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyxml-0.37.0 → polyxml-0.38.0}/crates/polyxml-core/tests/test_schema_attribute_entities.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|