This is the zig implementation of the multiformats spec.
git clone --recurse-submodules git@github.com:zen-eth/multiformats-zig.git
cd multiformats-zig
zig build test --summary all
zig build-exe src/generate.zig
./generate
zig fetch --save https://github.com/zen-eth/multiformats-zig/archive/main.tar.gz
const multiformats = @import("multiformats-zig");
git clone --recurse-submodules git@github.com:zen-eth/multiformats-zig.git
cd multiformats-zig
zig build bench --release=fast -Dcode=7
tip: The code
parameter in the command can refer to the declaration in the MultiBaseCodec.fromCode()
in the source file src/multibase.zig
.
MIT