Skip to content

Commit

Permalink
Miscellaneous feature/bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jhugman committed Sep 30, 2024
1 parent bc9218d commit 9c29b56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/ubrn_cli/src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ impl TemplateConfig {
rust_crate: CrateMetadata,
modules: Vec<ModuleMetadata>,
) -> Self {
let mut modules = modules;
modules.sort_by_key(|m| m.ts());
Self {
project,
rust_crate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace {{ self.config.project.cpp_namespace() }} {
{%- for m in self.config.modules %}
{{ m.cpp_module() }}::registerModule(runtime, callInvoker);
{%- endfor %}
return false;
return true;
}

uint8_t cleanupRustCrate(jsi::Runtime &runtime) {
Expand Down

0 comments on commit 9c29b56

Please sign in to comment.