mcpp index

gzj-creator.galay

import

C++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…