pmem / pmdk

Persistent Memory Development Kit
https://pmem.io
Other
1.34k stars 510 forks source link

Can PMDK used with Rust Program language? #5408

Closed EasyLuck closed 1 year ago

EasyLuck commented 2 years ago

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?

pbalcer commented 2 years ago

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?

EasyLuck commented 2 years ago

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

janekmi commented 1 year ago

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!