MCPcopy Create free account
hub / github.com/arcjet/gravity / generate_factory

Method generate_factory

cmd/gravity/src/codegen/bindings.rs:75–86  ·  view source on GitHub ↗

Generates the factory and instantiate functions, including any required interfaces.

(
        &mut self,
        analyzed_imports: &AnalyzedImports,
        import_chains: BTreeMap<String, Tokens<Go>>,
    )

Source from the content-addressed store, hash-verified

73 /// Generates the factory and instantiate functions, including any
74 /// required interfaces.
75 fn generate_factory(
76 &mut self,
77 analyzed_imports: &AnalyzedImports,
78 import_chains: BTreeMap<String, Tokens<Go>>,
79 ) {
80 let config = FactoryConfig {
81 analyzed_imports,
82 import_chains,
83 wasm_var_name: &self.raw_wasm_var,
84 };
85 FactoryGenerator::new(config).format_into(&mut self.out)
86 }
87
88 /// Generates all exports for the world.
89 ///

Callers 1

generateMethod · 0.45

Calls 1

format_intoMethod · 0.45

Tested by

no test coverage detected