Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add derive feature and change file structure #34

Closed
wants to merge 9 commits into from

Conversation

Vurv78
Copy link

@Vurv78 Vurv78 commented Apr 18, 2021

This

  • Adds a "derive" feature like how serde does it, which re-exports all of the macros from dlopen-derive in the wrapper struct. (ie dlopen::wrapper::WrapperApi)
  • Changes the file structure so that dlopen is in it's own workspace alongside the rest of the other crates.
  • Allows for public fields in the derive macros.

I seldom work on rust code so any criticism would especially be appreciated with something this large of a change.
This comes after the work of #32 and fixes #31, as well as fixes #30, also technically fixes #29 and fixes #28 but this is only because this pr comes after #32.

Vurv78 and others added 9 commits March 12, 2021 21:34
Testing...
Going to make this look a lot like serde and prepare to add that derive feature.
I don't know if this works
Should? Output the macros now.
alright this SHOULD work
Should export to the same location as WrapperApi is taken. So you don't need to use from the crate's root anymore
File structure change broke them. This should fix them.
Also, using the tests, properly made the WrapperApi macro(s) export at dlopen::wrapper::WrapperApi rather than the root.
@Vurv78 Vurv78 closed this May 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant