jonhoo / rust-ibverbs

Bindings for RDMA ibverbs through rdma-core
Apache License 2.0
143 stars 33 forks source link

[WIP] Add Guid type hiding raw ibv GUID #16

Closed planetA closed 2 years ago

planetA commented 3 years ago

Create new Guid type that takes care of endianness conversion.

jonhoo commented 3 years ago

Ah, I see what you're going for, but I think I wouldn't try a solution quite this drastic. It's fine to leave the __be64 type in bindgen — we don't generally expect people to be reaching into the ffi module. Then the error you were running into should also go away. I've also left a couple of notes inline.

jonhoo commented 2 years ago

Thanks!