mcpp index

gzj-creator.galay

import

C++23 coroutine networking and protocol framework with named Galay modules

import galay.utils;

Module name read from the upstream `export module` declaration in src/cpp/galay-utils/module/galay_utils.cppm.

mcpp add gzj-creator.galay@5.0.2

Usage

From this repository's own test project — built and run by CI, not written for the website.

// 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 · project tests/examples/galay

Build · upstream manifest

modules
galay.utils
targets
galay (lib)
language
c++23
manifest version
5.0.2
source
https://raw.githubusercontent.com/gzj-creator/galay/v5.0.2/mcpp.toml

Versions

VersionPlatforms Mirrorssha256
5.0.2 latest LinuxmacOS source 93a93fabcfeb…