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.
Originally, the
Runtime
component expected external imports given as FFI Functions Pointers. That resulted in FFI-related code under both thesvm-runtime-ffi
crate (obviously) but also under thesvm-runtime
as well. Common FFI code has been shared using thesvm-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 thesvm-runtime
to depend on thesvm-ffi
crate anymore.The next natural move was to migrate the
svm-ffi
code into thesvm-runtime-ffi
crate - and that's exactly what this PR is doing.