pmdk icon indicating copy to clipboard operation
pmdk copied to clipboard

Can PMDK used with Rust Program language?

Open EasyLuck opened this issue 2 years ago • 2 comments

QUESTION:

Details

Can PMDK used with Rust Program language? I have a system that program by Rust . Do I have other way to adapt my system to NVM / DCPMM instead of overwriting whole my codes?

EasyLuck avatar Mar 09 '22 10:03 EasyLuck

PMDK doesn't ship with Rust bindings. But there are some PMem-related crates. If you want something high-level, I recommend looking into https://crates.io/crates/corundum.

We are also thinking about creating pmem2 rust crate, but there are no immediate plans. Can you explain your use case a little bit more?

pbalcer avatar Mar 10 '22 15:03 pbalcer

So if I want use pmem with rust language, should I write assembly language , such as clflush / fence in my rust codes?

EasyLuck avatar Jul 14 '22 11:07 EasyLuck

I guess the answer is yes. Unless anything more robust has been created for Rust developers in the meantime which I am not aware of.

Hope your project has developed well since you asked this question. Best of luck!

janekmi avatar Aug 31 '23 07:08 janekmi