elast0ny / shared_memory

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

Provide a procedural macro to cast structs onto the shmem #17

Closed elast0ny closed 5 years ago

elast0ny commented 5 years ago

With the new procedural macros in 1.30, I think it would now be possible to have something like :

#[derive(SharedMemCast)]
struct MyStruct {
    //...
}

The procedural macro would recursively ensure that all the types in MyStruct are safe to be used in shared memory...

This would remove the need for SharedMemCast