huxerui.jsruntime
importTSX and QuickJS JavaScript runtime bridge for HuxerUI
import huxerui.jsruntime;
Module name read from the upstream `export module` declaration in modules/jsruntime.cppm.
mcpp add huxerui.jsruntime@0.1.1
Usage
From this repository's own test project — built and run by CI, not written for the website.
// Headless C++23 module consumer test for huxerui.jsruntime.
// Verifies package resolution, embedded QuickJS + TSX runtime.js execution,
// host callbacks, interrupt handling, and diagnostic capture across modules.
import std;
import huxerui.jsruntime;
import huxerui.jsruntime.quickjs;
namespace {
bool Expect(bool condition, std::string_view message) {
if (!condition) {
std::println("FAIL: {}", message);
return false;
}
return true;
}
bool TestQuickJs() {
namespace qjs = huxerui::quickjs;
{
qjs::Runtime rt;
// …
tests/examples/huxerui-jsruntime/tests/jsruntime.cpp · project tests/examples/huxerui-jsruntime
Build · upstream manifest
- modules
huxerui.jsruntime- targets
huxerui_tsx (lib), jsruntime (lib)- language
c++23- manifest version
0.1.1- dependencies
huxerui- source
https://raw.githubusercontent.com/HuxerUI/Lib-JSRuntime/v0.1.1/mcpp.toml
Versions
| Version | Platforms | Mirrors | sha256 |
|---|---|---|---|
0.1.1 latest |
LinuxWindowsmacOS | source | eda639d834d2… |