spacemeshos / svm

SVM - Spacemesh Virtual Machine
https://spacemesh.io
MIT License
86 stars 14 forks source link

Migrating `svm-ffi` into `svm-runtime-ffi` crate #320

Closed YaronWittenstein closed 3 years ago

YaronWittenstein commented 3 years ago

Originally, the Runtime component expected external imports given as FFI Functions Pointers. That resulted in FFI-related code under both the svm-runtime-ffi crate (obviously) but also under the svm-runtime as well. Common FFI code has been shared using the svm-ffi crate.

Moving the new Global-State to be implemented in Rust removed the requirement for the Runtime to rely on FFI imports. Consequently, there is no need for the svm-runtime to depend on the svm-ffi crate anymore.

The next natural move was to migrate the svm-ffi code into the svm-runtime-ffi crate - and that's exactly what this PR is doing.