Skip to content

zen-eth/zig-libp2p

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-libp2p

Zig implementation of libp2p, a modular network stack that allows you to build your own peer-to-peer applications.

Note: This is a work in progress and not yet ready for production use. The API may change frequently as we iterate on the design and implementation.

Prerequisites

  • Zig 0.14.1

Building

To build the project, run the following command in the root directory of the project:

zig build -Doptimize=ReleaseSafe

Running Tests

To run the tests, run the following command in the root directory of the project:

zig build test --summary all

Usage

Update build.zig.zon:

zig fetch --save git+https://github.com/zen-eth/zig-libp2p.git

In your build.zig:

const libp2p_dep = b.dependency("libp2p", .{
    .target = target,
    .optimize = optimize,
});
const libp2p_module = libp2p_dep.module("zig-libp2p");
root_module.addImport("libp2p", libp2p_module);

Releases

No releases published

Packages

No packages published

Contributors 5

Languages