SharedHashFile in Rust

#1

Hi guys!

Any way to use this without dirty trick to implement C code into rust?

This lib is the fastest key-value db, about 8 times faster than Redis on real benchmark and can be used between processes;

They provide an API in C, but i’m not sure how it could be implemented in Rust?

Thank you so much.

#2

You need to write an FFI wrapper for it (if none exists already).
Check here for a fair bit of detail: https://doc.rust-lang.org/nomicon/ffi.html