Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asio

A build.zig for asio. Intended for C++ projects using Zig as a build tool.

Usage

zig fetch --save https://github.com/Sc1pex/asio/archive/refs/tags/v1.36.0.tar.gz

Then, in your build.zig:

const asio_dep = b.dependency("asio", .{});
const asio_lib = asio_dep.artifact("asio");

exe.linkLibrary(asio_lib);

After that, you can use asio in C++:

#include <asio.hpp>

int main() {
    asio::io_context io;
    asio::steady_timer t(io, asio::chrono::seconds(5));
    t.wait();
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages