Thanks to visit codestin.com
Credit goes to github.com

Skip to content

neurocyte/asio

 
 

Repository files navigation

Asio Standalone for Zig Package Manager (MVP)

How to use

e.g:

  • build.zig
    const asio_dep = b.dependency("libasio", .{ // <== as declared in build.zig.zon
        .target = target, // the same as passing `-Dtarget=<...>` to the library's build.zig script
        .optimize = optimize, // ditto for `-Doptimize=<...>`
    });
    const libasio = asio_dep.artifact("asio"); // <== has the location of the dependency files (asio)
    /// your executable config
    exe.linkLibrary(libasio); // <== link libasio
    exe.installLibraryHeaders(libasio); // <== get copy asio headers to zig-out/include 
  • build.zig.zon
.{
    .name = "example",
    .version = "0.1.0",
    .paths = .{""},
    .dependencies = .{
        .libasio = .{
            .url = "https://github.com/kassane/asio/archive/[tag/commit-hash].tar.gz",
            // or
            .url = "git+https://https://github.com/kassane/asio#commit-hash",
            .hash = "[multihash - sha256-2]",
        },
    },
}

More info about zig-pkg

About

Asio C++ Library (uses zig build-system)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.6%
  • XSLT 1.2%
  • Makefile 1.0%
  • Perl 0.8%
  • HTML 0.2%
  • Zig 0.1%
  • Other 0.1%