mcpplibs.openkal-run
importlibokrun: the runner of ok images over this system's openkal implementation --- it maps an image with libokld and binds the kal_* names it imports to this process's implementation
import openkal.run;
模块名读自上游 src/okrun.cppm 里的 `export module` 声明。
mcpp add mcpplibs.openkal-run@0.7.3
用法
来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。
// The image's functions, called from this program through the binding
// openkal-bind generated, including a function of this program the image calls.
#include "twice.h"
#include <cstdio>
namespace { int64_t plus_one(int64_t v) { return v + 1; } }
int main() {
const int64_t a = twice(21), b = twice_apply(&plus_one, 20);
std::printf("openkal-bind-tests: twice(21) = %lld, twice_apply(plus_one, 20) = %lld\n",
static_cast<long long>(a), static_cast<long long>(b));
return a == 42 && b == 42 ? 0 : 1;
}
tests/examples/openkal-bind/tests/bind.cpp · 项目 tests/examples/openkal-bind
构建 · 上游清单
- modules
openkal.run- targets
okrun (lib)- manifest version
0.7.3- dependencies
openkal, openkal-ld- 来源
https://raw.githubusercontent.com/mcpplibs/openkal-image/0.7.3/run/mcpp.toml
版本
| 版本 | 平台 | 镜像 | sha256 |
|---|---|---|---|
0.7.3 最新 |
LinuxWindowsmacOS | GLOBAL CN | 4c144d010004… |
0.7.2 |
LinuxWindowsmacOS | GLOBAL CN | a09c05792add… |
0.7.1 |
LinuxWindowsmacOS | GLOBAL CN | a64b164a377a… |
0.7.0 |
LinuxWindowsmacOS | GLOBAL CN | bcc26ae26cd4… |
0.6.4 |
LinuxWindowsmacOS | GLOBAL CN | 37298c3c5d3a… |
展开全部 35 个版本
0.6.3 |
LinuxWindowsmacOS | GLOBALCN | 3b1d04d88a47… |
0.6.2 |
LinuxWindowsmacOS | GLOBALCN | 4f2f604d76db… |
0.6.1 |
LinuxWindowsmacOS | GLOBALCN | 36b792acadf4… |
0.6.0 |
LinuxWindowsmacOS | GLOBALCN | 12e9a22a664a… |
0.5.5 |
LinuxWindowsmacOS | GLOBALCN | ba1dcc6f93ec… |
0.5.4 |
LinuxWindowsmacOS | GLOBALCN | 84bc86cabd61… |
0.5.3 |
LinuxWindowsmacOS | GLOBALCN | 8b44ad29f0ba… |
0.5.2 |
LinuxWindowsmacOS | GLOBALCN | 110b5c871fdf… |
0.5.1 |
LinuxWindowsmacOS | GLOBALCN | 10c4cae4dd2b… |
0.5.0 |
LinuxWindowsmacOS | GLOBALCN | 6b3a906cd150… |
0.4.5 |
LinuxWindowsmacOS | GLOBALCN | 8ab1b47375a0… |
0.4.4 |
LinuxWindowsmacOS | GLOBALCN | e16f9f5e0423… |
0.4.3 |
LinuxWindowsmacOS | GLOBALCN | 7b6100c9296b… |
0.4.2 |
LinuxWindowsmacOS | GLOBALCN | ee15f41bc1b0… |
0.4.1 |
LinuxWindowsmacOS | GLOBALCN | 4fbf944e61ad… |
0.4.0 |
LinuxWindowsmacOS | GLOBALCN | 2ffec55b912f… |
0.3.2 |
LinuxWindowsmacOS | GLOBALCN | 2d9d259491e6… |
0.3.1 |
LinuxWindowsmacOS | GLOBALCN | c5a294d71b44… |
0.3.0 |
LinuxWindowsmacOS | GLOBALCN | e807ab2327a5… |
0.2.0 |
LinuxWindowsmacOS | GLOBALCN | 03ea705c01b4… |
0.1.9 |
LinuxWindowsmacOS | GLOBALCN | 5cef1fb2e647… |
0.1.8 |
LinuxWindowsmacOS | GLOBALCN | 16cfe4658166… |
0.1.7 |
LinuxWindowsmacOS | GLOBALCN | cbe4971fd0f3… |
0.1.6 |
LinuxWindowsmacOS | GLOBALCN | 0258983a1098… |
0.1.5 |
LinuxWindowsmacOS | GLOBALCN | 5cd28c5bcebf… |
0.1.4 |
LinuxWindowsmacOS | GLOBALCN | d9ec0dc0a78c… |
0.1.3 |
LinuxWindowsmacOS | GLOBALCN | eec70f276f97… |
0.1.2 |
LinuxWindowsmacOS | GLOBALCN | 63768571a800… |
0.1.1 |
LinuxWindowsmacOS | GLOBALCN | 7b0056d62e1f… |
0.1.0 |
LinuxWindowsmacOS | GLOBALCN | 50d79f5a2ba9… |