mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-11 18:54:11 +00:00
37048e87de
Since `DirSep` matches the default separator of the target OS, it's not suitable for performing path operations during compile-time on the host OS. The particular fix here solves the issue for cross-compiling a Windows build from a Linux host, but Nim seems to need a more general solution for detecting the host OS during compilation, so a host OS specific separator can be used in paths derived from `currentSourcePath`.
Nim bindings
This directory contains Nim bindings for the c-kzg-4844 library.
Requirements
This bindings support Nim compiler version 1.2, 1.4, 1.6, and devel.
You also need to install dependencies:
nimble install stew
Tests
Currently reference tests only support Nim compiler version 1.4, and 1.6 because of yaml library limitations. But other tests that are not using yaml can be run by Nim 1.2 - devel.
Dependencies:
nimble install unittest2
nimble install yaml
Run the tests from folder bindings\nim
:
nim test
Or from c-kzg-4844 root folder:
nimble test
How to use this bindings in your project
Install via nimble:
nimble install https://github.com/ethereum/c-kzg-4844
Then import one of kzg4844/kzg
, kzg4844/kzg_abi
, or kzg4844/kzg_ex
into your project.