-
Notifications
You must be signed in to change notification settings - Fork 65
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
Added API to register to server events. #267
Conversation
@MeirShpilraien do you need to break the crate to two crates? |
@gkorland Yes, derives and proc macros must be on a separate trait. This is why you have serde and serde_derive for example. |
Co-authored-by: Guy Korland <gkorland@gmail.com>
28181a1
to
037c8db
Compare
@@ -27,8 +27,23 @@ jobs: | |||
file: "Cargo.toml" | |||
key: "package.version" | |||
value: "${{ steps.get_version.outputs.VERSION }}" | |||
|
|||
- name: Set the version for publishing on derive crate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably need to also edit redismodule-rs-derive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is editing redismodule-rs-derive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just have a few suggestions.
Co-authored-by: Omer Shadmi <76992134+oshadmi@users.noreply.github.com>
The PR also introduce a new crate, redismodule-rs-derive, which is use to implement derive and proc macro functionality. Server events are registered using a
proc_macro_attribute
that add the server event handler to the relevant list server events handler list. This binding is done using: https://github.com/dtolnay/linkme