MCPcopy Create free account
hub / github.com/apache/fory / generate

Method generate

compiler/fory_compiler/generators/rust.py:462–469  ·  view source on GitHub ↗

Generate Rust files for the schema.

(self)

Source from the content-addressed store, hash-verified

460 self._named_schema_ids.add(schema_id)
461
462 def generate(self) -> List[GeneratedFile]:
463 """Generate Rust files for the schema."""
464 files = []
465
466 # Generate a single module file with all types
467 files.append(self.generate_module())
468
469 return files
470
471 def get_module_name(self) -> str:
472 """Get the Rust module name."""

Callers 1

_generate_rustMethod · 0.95

Calls 2

generate_moduleMethod · 0.95
appendMethod · 0.45

Tested by 1

_generate_rustMethod · 0.76