Skip to content

Convert ShimEvent to Rust#2773

Merged
sporksmith merged 4 commits intoshadow:mainfrom
sporksmith:shim-event-rs
Mar 3, 2023
Merged

Convert ShimEvent to Rust#2773
sporksmith merged 4 commits intoshadow:mainfrom
sporksmith:shim-event-rs

Conversation

@sporksmith
Copy link
Copy Markdown
Contributor

This just moves the C definitions mostly as-is from C to Rust, which will allow us to further extend them - e.g. by applying the VirtualAddressSpaceIndependent derive macro

@github-actions github-actions bot added Component: Libraries Support functions like LD_PRELOAD and logging Component: Main Composing the core Shadow executable labels Feb 28, 2023
@sporksmith
Copy link
Copy Markdown
Contributor Author

@stevenengler friendly ping - it'd be nice if I could get this merged today before I leaving town. I also have a couple small follow-ups to make it VirtualAddressSpaceIndependent and to change it from a union to a Rust enum

This changes the names to match what cbindgen wants to call these when
we migrate this enum to Rust. (I tried instead adding cbindgen
annotations to a Rust version of the enum, but it doesn't seem to work).
@sporksmith sporksmith enabled auto-merge March 3, 2023 17:11
@sporksmith sporksmith merged commit 70bf733 into shadow:main Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Libraries Support functions like LD_PRELOAD and logging Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants