gzj-creator.galay
importC++23 coroutine networking and protocol framework with named Galay modules
import galay.utils;
模組名讀自上游 src/cpp/galay-utils/module/galay_utils.cppm 裡的 `export module` 宣告。
mcpp add gzj-creator.galay@5.0.2
用法
來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。
// Default Galay package surface: both named modules and linked kernel code.
#ifdef HAVE_GALAY
import std;
import galay.utils;
import galay.kernel;
int main() {
using galay::kernel::Buffer;
using galay::kernel::Host;
using galay::kernel::IPType;
using galay::utils::Base64Util;
using galay::utils::StringUtils;
const std::string encoded = Base64Util::Base64Encode("galay");
if (encoded != "Z2FsYXk=") return 1;
if (Base64Util::Base64Decode(encoded) != "galay") return 2;
const auto pieces = StringUtils::split("galay:mcpp:index", ':');
if (pieces != std::vector<std::string>{"galay", "mcpp", "index"}) return 3;
Buffer buffer("galay", 5);
// …
tests/examples/galay/tests/modules.cpp · 專案 tests/examples/galay
建置 · 上游資訊清單
- modules
galay.utils- targets
galay (lib)- language
c++23- manifest version
5.0.2- 來源
https://raw.githubusercontent.com/gzj-creator/galay/v5.0.2/mcpp.toml
版本
| 版本 | 平台 | 鏡像 | sha256 |
|---|---|---|---|
5.0.2 最新 |
LinuxmacOS | 來源 | 93a93fabcfeb… |