Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

spacemeshos/go-svm-old

Repository files navigation

go-svm

Go bindings for SVM

Project structure

This repository contains both Rust and Go library packages.

The Rust package (/svm-dep) is defined as an empty package, with a dependency for the svm-runtime-c-api Rust package. Once compiled via Cargo, the .dylib/.so/.dll artifacts (on MacOS, Linux and Windows, respectively), in addition to the header file, can be copied to to the Go package (/svm), to be linked via cgo.

To allow direct and seamless import of the Go package, it includes the pre-compiled binaries mentioned above, which will be continuously updated.

Re-build SVM on your platform

$ just build-svm

(Yes, you need just).

Testing

$ just test