elast0ny / shared_memory

A Rust wrapper around native shared memory for Linux and Windows
382 stars 51 forks source link

Compatibility with nix:0.22.0 #68

Closed p-avital closed 3 years ago

p-avital commented 3 years ago

Hello,

nix changed their Error enum to a re-export of Errno. This breaks shared_memory when nix:0.22 is loaded by Cargo (which in turns breaks our crate zenoh unless we prevent that using the Cargo.lock). With this PR, I've updated the error handling so that it can compile again. For most of them, it removes one of the match arms :)

Sorry for the bigger than necessary diff on Cargo.toml, my formatter decided to do its thing.

Also, I've noticed you haven't cargo published version 0.12.0, so I didn't increment the version counter.

Let me know if you want some more changes before you feel comfortable publishing this version :)

Have a good day, Pierre.

elast0ny commented 3 years ago

Thanks a lot for the PR ! everything looks good :+1: